_buildActionDictionary(actionNameToKeyMap, options, componentId) {
    return Object.keys(actionNameToKeyMap).reduce((memo, actionName) => {
      const keyMapConfig = actionNameToKeyMap[actionName];

      const keyMapOptions = function(){
        if (isObject(keyMapConfig) && hasKey(keyMapConfig, 'sequences')) {
          return arrayFrom(keyMapConfig.sequences)
        } else {
          return arrayFrom(keyMapConfig);
        }
      }();

      keyMapOptions.forEach((keyMapOption) => {
        const { keySequence, keyEventType } =
          normalizeActionOptions(keyMapOption, options);

        this._addActionOptions(
          memo, componentId, actionName, keySequence, keyEventType
        );
      });

      return memo;
    }, {});
  }
Returns a mapping between ActionNames and ActionConfiguration
@param {KeyMap} actionNameToKeyMap - Mapping of ActionNames to key sequences.
@param {Object} options - Hash of options that configure how the key map is built.
@param {string} options.defaultKeyEvent - The default key event to use for any
       action that does not explicitly define one.
@param {ComponentId} componentId Index of the component the matcher belongs to
@returns {ActionDictionary} Map from ActionNames to ActionConfiguration
@private