Pressing escape will close the window