# How can I use the escape key on the editor with my BP?

**URL:** <https://forums.unrealengine.com/t/how-can-i-use-the-escape-key-on-the-editor-with-my-bp/1934288>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [July 11, 2024, 5:17pm UTC](https://forums.unrealengine.com/t/how-can-i-use-the-escape-key-on-the-editor-with-my-bp/1934288 "2024-07-11T17:17:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiruru002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kiruru002](https://forums.unrealengine.com/u/kiruru002)\
**Post date:** [July 11, 2024, 5:17pm UTC](https://forums.unrealengine.com/t/how-can-i-use-the-escape-key-on-the-editor-with-my-bp/1934288/1 "2024-07-11T17:17:51Z")

</div>

I am creating & testing a game in the ue5 editor.  
When I press the escape key in the editor, the game exits.  
How can I use the escape key on the editor with my BP?

The following thread was a close topic and was useful and meaningful information for me, but not complete.  
I am looking for a way to disable it temporarily rather than permanently during a game.

> [@Escape key exits game for "Play" in editor](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375):
>
> How do I disable escape key exiting the game when I do “Play” in the editor? It used to be disabled for New Editor Window (PIE), but with UE 4.13, this is broken. By broken, I mean pressing Esc key quits - which I don’t want.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 11, 2024, 6:05pm UTC](https://forums.unrealengine.com/t/how-can-i-use-the-escape-key-on-the-editor-with-my-bp/1934288/2 "2024-07-11T18:05:07Z")

</div>

So you’ve figured out you can turn off the ESC key in the editor settings?

Either it stops the game, or you turn it off in the editor settings, and then handle it yourself during the game.

That’s about it 🙂

---

<div class="post-metadata">

**Author:** ![kiruru002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kiruru002](https://forums.unrealengine.com/u/kiruru002)\
**Post date:** [July 12, 2024, 6:16am UTC](https://forums.unrealengine.com/t/how-can-i-use-the-escape-key-on-the-editor-with-my-bp/1934288/3 "2024-07-12T06:16:29Z")

</div>

Yes, thanks, the remedies here certainly helped me!  
(Editor Preferences \> General \> Keyboard Shortcuts, “Play World (PIE/SIE)” “Stop”)  
I can also see that after setting this up I can handle it myself.  
But this is a personal setting, right?  
If I set this up, it does not necessarily mean that other members will also set this up!  
Can I accomplish that without changing this setting itself?  
Or how do I force the setting to be changed/disabled?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [July 12, 2024, 7:12am UTC](https://forums.unrealengine.com/t/how-can-i-use-the-escape-key-on-the-editor-with-my-bp/1934288/4 "2024-07-12T07:12:45Z")

</div>

Ah, I see.

When you package the game, the ESC key does not work 😉

( you have to handle it yourself if you want it to do something ).

---

<div class="post-metadata">

**Author:** ![kiruru002](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@kiruru002](https://forums.unrealengine.com/u/kiruru002)\
**Post date:** [July 12, 2024, 11:45am UTC](https://forums.unrealengine.com/t/how-can-i-use-the-escape-key-on-the-editor-with-my-bp/1934288/5 "2024-07-12T11:45:54Z")

</div>

Thank you.  
Well, I’ll take more time to do my own research on this.  
Thank you for your help.  
Thanks for the advice.
