function addListener(action, fn) {

    if (editorActions.isRegistered(action)) {
      keyboard.addListener(fn);
    }
  }
Add keyboard binding if respective editor action
is registered.

@param {string} action name
@param {Function} fn that implements the key binding