Download

OnKeyDown not working

Hi,

I’m currently trying to make a control menu for my game, but i figured out my OnKeyDown function is never called. My OnMouseButtonDown is called.
OnKeyDown:

OnMouseButtonDown:

Pressed the button:
882c9587b617ec197593ea405a0cd2fa7f08561f.png

I found out that the widget never has keyboard focus. This is my test setup:
881a30d09dccabe36aa8a56dd584ec375645b0f3.png

Does anybody knows what the problem is?
Thanks in advance

I found the solution. As target, i had to select the button, and not the widget itself.