UI Widget key events OnKeyDown/OnKeyUp not generated

I don’t understand what the problem is. The way I use it, it is very convenient. I can navigate with joystick or keyboard now.