private void clearKeyBinding(KeyStroke ks) {

		ToolActions toolActions = (ToolActions) tool.getToolActions();
		Action action = toolActions.getAction(ks);
		if (action instanceof MultipleKeyAction multiAction) {
			List<DockingActionIf> actions = multiAction.getActions();
			for (DockingActionIf dockingAction : actions) {
				runSwing(() -> dockingAction.setKeyBindingData(null));
			}
		}
		else if (action instanceof SystemKeyBindingAction systemAction) {
			DockingActionIf dockingAction = systemAction.getAction();
			runSwing(() -> dockingAction.setKeyBindingData(null));
		}
	}
Tests for key bindings option panel
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingsTest.java