Function AppFrame.findKeyAction

map key to action

override Action findKeyAction(
  uint keyCode,
  uint flags
);