Made editor window closable with ESC key