Make escape shortcut work