handler = (event) => {
      if (event.key === 'Escape' && this.closeOnEsc) {
        this.onClose(event, 'pressedEscape')
      }
    }
Escape key press event handler for modal
@param {Event} event Keyboard Event