function callback() {
    var commandManager = wtf.events.CommandManager.getShared();
    if (commandManager) {
      commandManager.execute(commandName, this, null);
    }
  }
Adds a command to be executed on the given key press.
@param {string} shortcut Shortcut string (like 'ctrl+g').
@param {string} commandName Command name.