Fix ESC key not working as a normal shortcut