Now the escape key closes the window.