# Escape key exits game for "Play" in editor

**URL:** <https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375>\
**Category:** Pipeline & Plugins\
**Tags:** unreal-engine, play, editor, question\
**Created:** [October 3, 2016, 10:38pm UTC](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375 "2016-10-03T22:38:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e10a6464](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e10a6464](https://forums.unrealengine.com/u/anonymous_user_e10a6464)\
**Post date:** [October 3, 2016, 10:38pm UTC](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375/1 "2016-10-03T22:38:07Z")

</div>

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:** ![MSE\_Taliesin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MSE\_Taliesin](https://forums.unrealengine.com/u/MSE_Taliesin)\
**Post date:** [October 26, 2016, 7:30pm UTC](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375/2 "2016-10-26T19:30:24Z")

</div>

We’re running into this as well; it seems that in 4.12, Escape worked properly when running in New Editor Window - PIE, but in 4.13, it exits the game.

---

<div class="post-metadata">

**Author:** ![normal\_ST](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@normal\_ST](https://forums.unrealengine.com/u/normal_ST)\
**Post date:** [November 8, 2016, 1:06pm UTC](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375/3 "2016-11-08T13:06:28Z")

</div>

Same here.

defaultInput.ini:  
-DebugExecBindings=(Key=Escape,Command=“CloseEditorViewport”)

Not working anymore? Epics stuff, please fix it…

---

<div class="post-metadata">

**Author:** ![Jasdela](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jasdela](https://forums.unrealengine.com/u/Jasdela)\
**Post date:** [January 20, 2020, 4:18pm UTC](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375/4 "2020-01-20T16:18:56Z")

</div>

In case anyone comes across this topic via a search engine, in UE4.24 you can disable this via Editor Preferences \> General \> Keyboard Shortcuts, then under the “Play World (PIE/SIE)” section it’s near the bottom listed as “Stop”. Just clear that binding and the escape key will no longer quit PIE

---

<div class="post-metadata">

**Author:** ![YoshaVD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YoshaVD](https://forums.unrealengine.com/u/YoshaVD)\
**Post date:** [November 9, 2023, 10:24am UTC](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375/5 "2023-11-09T10:24:18Z")

</div>

Thank you, this was helpful!

---

<div class="post-metadata">

**Author:** ![dBugSlayer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dBugSlayer](https://forums.unrealengine.com/u/dBugSlayer)\
**Post date:** [August 5, 2024, 5:40pm UTC](https://forums.unrealengine.com/t/escape-key-exits-game-for-play-in-editor/372375/6 "2024-08-05T17:40:58Z")

</div>

Thank you. This should be marked as the answer.
