close window event doesn't include the escape key