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")