Close dialog on escape key