Make the 'esc' key always close the modal.
Also apply 'esc' for closing modals globally on the popup.