Allow dialog boxes to be cancelled by hitting the Escape key.