public static void clearKeyBinding(JComponent component, String actionName) {

		InputMap inputMap = component.getInputMap(JComponent.WHEN_FOCUSED);
		if (inputMap == null) {
			return;
		}

		KeyStroke keyStroke = null;
		KeyStroke[] keys = inputMap.allKeys();
		if (keys == null) {
			Msg.debug(KeyBindingUtils.class, "Cannot remove action by name; does not exist: '" +
				actionName + "' " + "on component: " + component.getClass().getSimpleName());
			return;
		}

		for (KeyStroke ks : keys) {
			Object object = inputMap.get(ks);
			if (actionName.equals(object)) {
				keyStroke = ks;
				break;
			}
		}

		if (keyStroke != null) {
			clearKeyBinding(component, keyStroke);
		}
	}
Clears the currently assigned Java key binding for the action by the given name.  This
method will find the currently assigned key binding, if any, and then remove it.

@param component the component for which to clear the key binding
@param actionName the name of the action that should not have a key binding
@see LookAndFeel
Ghidra/Framework/Docking/src/main/java/docking/actions/KeyBindingUtils.java