fixed escape key closing window