code: function isHotkey(hotkey, options, event) {
    if (options && !('byKey' in options)) {
      event = options
      options = null
    }
  
    if (!Array.isArray(hotkey)) {
      hotkey = [hotkey]
    }
  
    const array = hotkey.map(string => parseHotkey(string, options))
    const check = e => array.some(object => compareHotkey(object, e))
    const ret = event == null ? check : check(event)
    return ret
  }
docs: Is hotkey?