No MIDI events despite detected device

Hello,
I have a serious problem with Renoise and need help. Generally, my midi keyboard (M-Audio Oxygen Pro mini) is detected by Renoise. But there are no events coming to Renoise.

I’m using Ubuntu 20.04, on the same machine I have Ardour, standalone mini monitor. And I get midi events everywhere except Renoise. What is stranger, once I had this keyboard working in Renoise, but then without changing any configuration it stopped working once I closed Renoise.

Previously I had Akai MPK 25 and did not have any issues.

Generally I’m pretty convinced that this issue is related to Renoise in some way. Because everywhere else this keyboard works.

Here is my MIDI configuration:


EDIT: Even virtual keyboard like VMPK is working correctly and I can use it with Renoise.