@Test
	public void testSetKeybindingUsingSystemDefaultBinding_InUse() throws Exception {
		//
		// Test that users can change the keybinding for a non-System action to use a pre-defined
		// System key stroke only if the binding is not in-use by a System action. 
		//
		// This test will clear the system key binding in the UI by using the backspace key.
		// Note: The 'Apply' button must be pressed before the system key stroke can be reused.
		//

		DockingActionIf systemAction = getAction("Show Context Menu"); // arbitrary system action
		KeyStroke systemKs = systemAction.getKeyBinding();
		String systemKsText = KeyBindingUtils.parseKeyStroke(systemKs);
		assertEquals(SystemKeyBindings.CONTEXT_MENU_KEY1, systemKs);
		assertNotNull(systemKs);

		DockingActionIf goToAction = getAction(tool, "Go To Address/Label"); // arbitrary plugin action
		KeyStroke goToKs = goToAction.getKeyBinding();
		assertNotNull(goToKs);

		setUpDialog();

		selectRowForAction(action1);
		typeKeyStroke(systemKs);
		assertNoKeyStrokeText();
		assertMessage(systemKsText + " in use by System action 'Show Context Menu'");

		selectRowForAction(systemAction);
		pressButtonByName(panel, "Clear Key Binding");
		apply();
		assertEquals(null, getKeyStroke(systemAction));

		selectRowForAction(action1);
		typeKeyStroke(systemKs);
		assertKeyFieldText(systemKsText);
		assertNoErrorMessage();
	}
Tests for key bindings option panel
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingsTest.java