remove weird "restore" event on ESC key