private void setUpDialog() throws Exception {

		if (panel != null) {
			runSwing(() -> {
				dialog.setVisible(false);
			});
		}

		runSwing(() -> {
			panel = new KeyBindingsPanel(tool);
			panel.setOptionsPropertyChangeListener(evt -> {
				// stub
			});

			dialog = new JDialog(tool.getToolFrame(), "Test KeyBindings", false);
			dialog.getContentPane().add(panel);
			dialog.pack();
			dialog.setVisible(true);
		});
		table = findComponent(panel, JTable.class);
		keyField = (JTextField) findComponentByName(panel, "Key Entry Text Field");
		statusPane = findComponent(panel, JTextPane.class);
		model = table.getModel();
		waitForSwing();
	}
Tests for key bindings option panel
Ghidra/Features/Base/src/test.slow/java/ghidra/framework/plugintool/dialog/KeyBindingsTest.java