Pressing esc closes dialog.