close the dialog on Esc