registerKeyMap(keyMap) {
    this.componentId += 1;

    this.componentTree.add(this.componentId, keyMap);

    this.logger.verbose(
      this.logger.nonKeyEventPrefix(this.componentId, { focusTreeId: false }),
      'Registered component in application key map:\n',
      `${printComponent(this.componentTree.get(this.componentId))}`
    );

    return this.componentId;
  }
Registers a new mounted component's key map so that it can be included in the
application's key map
@param {KeyMap} keyMap - Map of actions to key expressions
@returns {ComponentId} Unique component ID to assign to the focused HotKeys
         component and passed back when handling a key event