Function MenuItem.findKeyAction

map key to action

Action findKeyAction(
  uint keyCode,
  uint flags
);