public static boolean processMenuKeyEvent(KeyEvent event) {

		MenuSelectionManager manager = MenuSelectionManager.defaultManager();
		MenuElement[] path = manager.getSelectedPath();
		if (!hasJPopupMenu(path)) {
			return false;
		}

		KeyStroke eventStroke = KeyStroke.getKeyStrokeForEvent(event);
		MenuKeyHandler Handler = menuHandlersByKeyStroke.get(eventStroke);
		if (Handler != null) {
			Handler.process(manager, path);
			event.consume();
			return true;
		}

		return false;
	}
Checks the given event to see if it has a registered action to perform while a menu is open.
If a menu is open and a handler exists, the handler will be called.

@param event the event to check
@return true if the event triggered a handler
Ghidra/Framework/Docking/src/main/java/docking/menu/keys/MenuKeyProcessor.java