private boolean setMouseBinding(String actionName, MouseBinding mouseBinding) {

		if (keyBindings.isMouseBindingInUse(actionName, mouseBinding)) {

			String existingName = keyBindings.getActionForMouseBinding(mouseBinding);
			String message = """
					Mouse binding '%s' already in use by '%s'.
					The existing binding must be cleared before it can be used again.
					""".formatted(mouseBinding, existingName);
			Msg.showInfo(this, actionBindingPanel, "Mouse Binding In Use", message);
			actionBindingPanel.clearMouseBinding();
			return false;
		}

		return keyBindings.setActionMouseBinding(actionName, mouseBinding);
	}
Processes KeyStroke entry from the text field.
Ghidra/Framework/Project/src/main/java/ghidra/framework/plugintool/dialog/KeyBindingsPanel.java