Make window closable by ESC key

Closes #431