@Test
	public void testSetKeyBinding() throws Exception {
		// set a key binding on an action that does not have a key binding
		selectRowForAction(action1);
		triggerActionKey(keyField, InputEvent.CTRL_DOWN_MASK, KeyEvent.VK_X);
		KeyStroke ks = KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_DOWN_MASK);
		assertKeyFieldText(KeyBindingUtils.parseKeyStroke(ks));

		apply();
		assertEquals(ks, getKeyStroke(action1));
	}
Tests for key bindings option panel
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingsTest.java