How to override default gamepad/keyboard key in UMG?

for now i am using On preview key down function to override it and it seems to work…for now.