Cancel editor window when escape key is pressed.