# During Play in editor (PIE), is there a shortcut to simulate ESC without stopping the game?

**URL:** <https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [September 26, 2014, 1:28am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601 "2014-09-26T01:28:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_76ae4db4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76ae4db4](https://forums.unrealengine.com/u/anonymous_user_76ae4db4)\
**Post date:** [September 26, 2014, 1:28am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/1 "2014-09-26T01:28:04Z")

</div>

A lot of games use keyboard ‘ESC’ for pause menus, backing out of UI etc. Currently in the ShooterGame sample, you can only send an Escape to the game in Standalone mode. In Play In Editor (PIE) mode the editor responds to the keypress by stopping the game.

It would be great if we could simulate Escape presses in Play In Editor (PIE) mode, for example by pressing Shift+ESC or another key binding to avoid stopping the game session.

---

<div class="post-metadata">

**Author:** ![birdfreeyahoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@birdfreeyahoo](https://forums.unrealengine.com/u/birdfreeyahoo)\
**Post date:** [September 26, 2014, 1:42am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/2 "2014-09-26T01:42:48Z")

</div>

Under Editor Settings-\>Keyboard settings under Play World, try override the Stop command.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_76ae4db4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76ae4db4](https://forums.unrealengine.com/u/anonymous_user_76ae4db4)\
**Post date:** [September 26, 2014, 4:42am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/3 "2014-09-26T04:42:59Z")

</div>

Thanks for the quick reply! I just tried this but it still seems to use Escape as well as the new binding to stop the game. I’ve got source access so I’ll dig in and find out why it’s still using Escape. Cheers!

---

<div class="post-metadata">

**Author:** ![ruohki](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ruohki](https://forums.unrealengine.com/u/ruohki)\
**Post date:** [November 15, 2014, 2:22am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/4 "2014-11-15T02:22:42Z")

</div>

if you bound ESC in the input settings just bind another key to the same mapping and remove that key when you cook your content

---

<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:** [February 13, 2015, 11:37pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/5 "2015-02-13T23:37:03Z")

</div>

I could use an answer to this too. Trying to test functionality related to Escape key handling and it’s not quite working in Standalone but there’s no way for me to debug it in “New Editor Window” mode like I’d normally do. Setting a new binding in Editor Settings → Keyboard → Play World doesn’t make a difference; Escape still closes.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a4dff250](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a4dff250](https://forums.unrealengine.com/u/anonymous_user_a4dff250)\
**Post date:** [May 15, 2015, 10:29am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/6 "2015-05-15T10:29:02Z")

</div>

Try pressing f8. While in play

---

<div class="post-metadata">

**Author:** ![zompi2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zompi2/32/937524_2.png) [@zompi2](https://forums.unrealengine.com/u/zompi2)\
**Post date:** [September 16, 2015, 5:38pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/7 "2015-09-16T17:38:19Z")

</div>

Wow, I’m really digging out an old question. But I found this solution:

In DefaultEngine.ini in the project you can add:

```
[/Script/Engine.PlayerInput]
-DebugExecBindings=(Key=Escape,Command="CloseEditorViewport")

```

This should unbind the Escape button from closing the game in the editor.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_76ae4db4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_76ae4db4](https://forums.unrealengine.com/u/anonymous_user_76ae4db4)\
**Post date:** [September 17, 2015, 12:24am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/8 "2015-09-17T00:24:54Z")

</div>

Awesome - that makes testing in-game pause menus a lot easier in the editor. Thanks a lot.

---

<div class="post-metadata">

**Author:** ![NashMuhandes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NashMuhandes](https://forums.unrealengine.com/u/NashMuhandes)\
**Post date:** [September 27, 2015, 8:48pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/9 "2015-09-27T20:48:59Z")

</div>

Does not work in UE 4.9.1.

---

<div class="post-metadata">

**Author:** ![zompi2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zompi2/32/937524_2.png) [@zompi2](https://forums.unrealengine.com/u/zompi2)\
**Post date:** [October 3, 2015, 5:23pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/10 "2015-10-03T17:23:09Z")

</div>

Oh. It seems they changed a place. Now you have to put those lines into the DefaultInput.ini, not Engine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_6dbe8be9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_6dbe8be9](https://forums.unrealengine.com/u/anonymous_user_6dbe8be9)\
**Post date:** [October 24, 2015, 1:01am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/11 "2015-10-24T01:01:02Z")

</div>

I can’t beleive this took a year to be answered, but thank you for being our savior!

---

<div class="post-metadata">

**Author:** ![Mattlauk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Mattlauk](https://forums.unrealengine.com/u/Mattlauk)\
**Post date:** [November 21, 2015, 6:18pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/12 "2015-11-21T18:18:24Z")

</div>

Bump. Can we get answer for this? The posted solution no longer works.

---

<div class="post-metadata">

**Author:** ![lackthereof0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@lackthereof0](https://forums.unrealengine.com/u/lackthereof0)\
**Post date:** [February 1, 2016, 3:52am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/13 "2016-02-01T03:52:51Z")

</div>

I just tested the solution below which works in 4.10.1. Add the following lines to the bottom of DefaultEngine.ini in your project’s Config folder, then restart the editor.

```
[/Script/Engine.PlayerInput]
-DebugExecBindings=(Key=Escape,Command="CloseEditorViewport")
```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [February 1, 2016, 8:57pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/14 "2016-02-01T20:57:57Z")

</div>

Technically the previous answer was correct, the location is wrong:

1. Open **DefaultInput.ini**
2. At the top, locate the section: **[/Script/Engine.PlayerInput]**
3. Add the following line under all the “+DebugExecBindings” (There should be around four):

-DebugExecBindings=(Key=Escape,Command=“CloseEditorViewport”)

\*Notice that the other four bindings have a “+” sign, while this “-” unbinds the original Esc key setting

---

<div class="post-metadata">

**Author:** ![LEIT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leit/32/1069506_2.png) [@LEIT](https://forums.unrealengine.com/u/LEIT)\
**Post date:** [March 27, 2016, 10:34pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/15 "2016-03-27T22:34:59Z")

</div>

It took me a little while to get this right. The location is in the UE4 main directory, not your project folder.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [March 29, 2016, 2:12pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/16 "2016-03-29T14:12:03Z")

</div>

Hi ,

Checking into this I’m not sure what location you’re referring to as the Defaultinput.ini in the UE4 Main Directory still only resides in template **project** folders. So, for instance, if you modify the DefaultInput.ini for the Vehicle Template (for UE 4.11), then every 4.11 project you start with that template will have that functionality. However, if you modify your project’s DefaultInput.ini it will override the inputs from the UE4 main directory.

On the other hand, if you do not modify the DefaultInput.ini in the Main Directory then you can choose to add this functionality on a project to project basis. (Location: [YourProject]\>Config\>DefaultInput.ini.

A couple of notes: You do not have to add the script in the specific location I mentioned before, you can simply add the script to the bottom. Also, DefaultInput.ini does not exist in the Shooter Game example’s project folder, so this may be adding to the confusion.

-Let me know if you do not find this to be the case and/or provide the location in the UE4 main directory you are referring to in your comment if different from this explanation.

Thanks,

.

---

<div class="post-metadata">

**Author:** ![LEIT](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leit/32/1069506_2.png) [@LEIT](https://forums.unrealengine.com/u/LEIT)\
**Post date:** [April 26, 2016, 1:57am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/17 "2016-04-26T01:57:37Z")

</div>

Hi ,  
Default input and Player input were in two different places. The main directory is where I found the Player input. That was the part that I found confusing. I hope this helps. 🙂

---

<div class="post-metadata">

**Author:** ![anon12961559](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anon12961559](https://forums.unrealengine.com/u/anon12961559)\
**Post date:** [July 10, 2016, 9:23am UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/18 "2016-07-10T09:23:55Z")

</div>

In 4.12 I found the general bindings (Script/Engine.PlayerInput) in:

**C:\Program Files (x86)\Epic Games\4.12\Engine\Config\BaseInput.ini**

There I was able to comment out (_put a “;” in front of line_) the bindings that I didn’t want, in my case the F1-F5 keys.

This engine sometimes. Honestly.

---

<div class="post-metadata">

**Author:** ![Taurian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Taurian](https://forums.unrealengine.com/u/Taurian)\
**Post date:** [September 16, 2016, 4:31pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/19 "2016-09-16T16:31:41Z")

</div>

Does this still work in 4.13? It’s not appearing to have any effect.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bcdd396d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bcdd396d](https://forums.unrealengine.com/u/anonymous_user_bcdd396d)\
**Post date:** [September 16, 2016, 8:56pm UTC](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601/20 "2016-09-16T20:56:08Z")

</div>

This works in UE4.13 but the location is different. Use the path above:

**C:\Program Files (x86)\Epic Games\4.12\Engine\Config\BaseInput.ini**

-and add the line here:

 ![107357-playerinput.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/7/f779194a97be96fa128d9f976c1417eb6e8e1440.png)

Save and Close; Don’t forget to restart the Launcher/Engine.

[Next page](https://forums.unrealengine.com/t/during-play-in-editor-pie-is-there-a-shortcut-to-simulate-esc-without-stopping-the-game/294601.md?page=2)
