Set Input Mode UI Only lock keyboard

Hi y’all,

I am trying to do a simple function to toggle my character sheet. But after pressing suitable action key, it does not listen to the keyboard anymore. I did override a function “OnKeyDown” with a simple printing string just to see if it works but it does not show anything. I am new to UE4 so I could make a mistake anywhere. I am including screenshots of how I am using action key to toggle character sheet, ToggleCharacterSheet function itself and override function “OnKeyDown” on my CharacterSheet HeadsUpDisplay. Hopefully, I have provided everything important.

Thank you all.