# How to disable input except for one specific key?

**URL:** <https://forums.unrealengine.com/t/how-to-disable-input-except-for-one-specific-key/151734>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [October 6, 2020, 4:54pm UTC](https://forums.unrealengine.com/t/how-to-disable-input-except-for-one-specific-key/151734 "2020-10-06T16:54:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hillofgold](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hillofgold](https://forums.unrealengine.com/u/hillofgold)\
**Post date:** [October 6, 2020, 4:54pm UTC](https://forums.unrealengine.com/t/how-to-disable-input-except-for-one-specific-key/151734/1 "2020-10-06T16:54:03Z")

</div>

I’m trying to make only the F key work when the player is under a specific condition, how do i disable all input with an exception? Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![Est\_engine](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/est_engine/32/1008648_2.png) [@Est\_engine](https://forums.unrealengine.com/u/Est_engine)\
**Post date:** [October 7, 2020, 11:39am UTC](https://forums.unrealengine.com/t/how-to-disable-input-except-for-one-specific-key/151734/2 "2020-10-07T11:39:08Z")

</div>

> [@hillofgold](#):
>
> I’m trying to make only the F key work when the player is under a specific condition, how do i disable all input with an exception? Any help is appreciated.

Hi man, there are probably more clever ways… the only thing i can think is add a function to the all the input, like a simple “if” when a boolean is off, all the input stop working but 1.  
or  
Disable the input for that, and use another actor with the input enabled to read only what you want and call a custom event in the off-actor to mimic the event input you want.

---

<div class="post-metadata">

**Author:** ![Rakowu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rakowu](https://forums.unrealengine.com/u/Rakowu)\
**Post date:** [February 16, 2025, 9:18pm UTC](https://forums.unrealengine.com/t/how-to-disable-input-except-for-one-specific-key/151734/3 "2025-02-16T21:18:03Z")

</div>

I run into a similiar issue, in my case for dialogue i wanted to avoid any movement and camera input. For those who still seraching and had a similiar problem :

I just add a bool variable wich then i check before the camera and movement input:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/a/b/eabf5deecc9fa01ae782562dd220f043af4a546a.png)

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [February 16, 2025, 10:17pm UTC](https://forums.unrealengine.com/t/how-to-disable-input-except-for-one-specific-key/151734/4 "2025-02-16T22:17:41Z")

</div>

You could just disable movement directly.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/2/be29fda6a85693954c36b91d12be523445883aaf.png)

When done set movement mode back to walking.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/8/50897cc28c16fa877d245a80ce6ad1b7c1e68dd6.png)

Yet both of these solutions do not prevent non-movement “input” related actions from taking place.

---

<div class="post-metadata">

**Author:** ![shora\_f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@shora\_f](https://forums.unrealengine.com/u/shora_f)\
**Post date:** [June 13, 2026, 3:21am UTC](https://forums.unrealengine.com/t/how-to-disable-input-except-for-one-specific-key/151734/5 "2026-06-13T03:21:38Z")

</div>

Thank you so much for this quick guide.  
I had a similar situation in which I wanted to take away everything from player control, except camera. And this seems to work the best as a switch in “anim notify state”
