code: protected void addActionKeyBinding(KeyStroke key, String actionKey) {
  		if (actionKey == finishCommand.getId()) {
  			addActionKeyBinding(key, actionKey, finishCommand.getActionAdapter());
  		}
  		else if (actionKey == cancelCommand.getId()) {
  			addActionKeyBinding(key, actionKey, cancelCommand.getActionAdapter());
  		}
  		else {
  			throw new IllegalArgumentException("Unknown action key " + actionKey);
  		}
  	}
docs: Add an action key binding to this dialog.
  
  @param key the {@link KeyStroke} that triggers the command/action.
  @param actionKey id of command that will be triggered by the {@link KeyStroke}.
  
  @see #addActionKeyBinding(KeyStroke, String, Action)