void assignKeyBinding() {
		ResourceFile script = getSelectedScript();
		ScriptAction action = actionManager.createAction(script);

		KeyBindingInputDialog dialog = new KeyBindingInputDialog(getComponent(), script.getName(),
			action.getKeyBinding(), plugin, actionManager.getKeyBindingHelpLocation());
		if (dialog.isCancelled()) {
			plugin.getTool().setStatusInfo("User cancelled keybinding.");
			return;
		}
		KeyStroke newKs = dialog.getKeyStroke();
		action.setKeyBindingData(newKs == null ? null : new KeyBindingData(newKs));
		scriptTable.repaint();
	}
@return the bundle host used for scripting, ultimately from
        {@link GhidraScriptUtil#getBundleHost()}
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/script/GhidraScriptComponentProvider.java