When closing a dialog ESC can be used as long as u do not click somewhere on the dialog. The ESC works when one of the fields have focus but not when the dialog itself is in focus. (after dragging for example)