**Most UE4 users know that pressing escape while testing your game will exit out of the simulation of whatever you were doing. Maybe you are wanting to use escape as an inventory keybind or for your main menu. I’ve noticed that new users have asked about this in the past, well look no further for you have found this guide!
**4. Once you’ve clicked “Keyboard and Shortcuts”, search “Stop” in the search bar, and find “Play World (PIE/SIE)”, you can **then change the keybind to whatever you want. If it says that shortcut is already in use choose something else.
this does not seem to work anymore. I have tried changing this and escape still exits PIE.
EDIT: After some digging the Escape key is now hard coded into the source. if you want to disable this now you have to use a source build and edit the source.
the file is located at Engine\Source\Editor\UnrealEd\Private\Kismet2\DebuggerCommands.cpp
Edit: Before I found the setting mentioned by OP and thought it was hard-coded, I found out you can bind to the FBindingContext::CommandsChanged event and override it there. You need to make sure this happens early enough, since it’ll only trigger once at editor startup. I did it in a UDeveloperSettings object so I could customize the binding, but you can probably figure out the right incantation to do it without such an object.