OnKeyDown not working


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.


Pressed the button:

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

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.