# Set Input Mode UI Only lock keyboard

**URL:** <https://forums.unrealengine.com/t/set-input-mode-ui-only-lock-keyboard/452032>\
**Category:** Blueprint\
**Tags:** toggle, unreal-engine, UE4, question, Blueprint\
**Created:** [July 10, 2019, 7:51pm UTC](https://forums.unrealengine.com/t/set-input-mode-ui-only-lock-keyboard/452032 "2019-07-10T19:51:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_a54ac0cf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a54ac0cf](https://forums.unrealengine.com/u/anonymous_user_a54ac0cf)\
**Post date:** [July 10, 2019, 7:51pm UTC](https://forums.unrealengine.com/t/set-input-mode-ui-only-lock-keyboard/452032/1 "2019-07-10T19:51:02Z")

</div>

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.

 ![282112-thirdpersoncharacter-eventgraph.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/7/e77125be66da181ecfab47fa98f541e737f94dc1.png)

 ![282111-thirdpersoncharacter-togglecharactersheet.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/8/4/084d7f4157f93b916196676f8888c850650f6981.jpeg)

 ![282113-headsupdisplay-onkeydown.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/e/dae1367aec6eeaa6b87d4615f7c7d89f9829406b.png)
