Make window closable by ESC key