If your ae planning on using it for main/pause menu or something similar I would suggest using the OnPreviewKeyDown function instead of OnKeyUp/Down, simply because it will allow you to use the key even if the focus is on it’s children, for this to happen you need to make sure that the widget itself is Focusable, after creating and adding the widget to the viewport you focus it, and if you want to go further and fix the mouse click outside of parent and child you will have to call Set Keyboar Focus on OnRemovedFromFocusPath Event. This works epic for me, and it’s less memory consuming then using On Event Tick because this will be triggered only when a key is pressed rather then each tick.


