Enables close window with esc key