private void apply(ToolOptions keyStrokeOptions, KeyBindingData keyBinding) {

			if (keyBinding == null) {
				// no bindings; bindings have been cleared
				for (DockingActionIf action : actions) {
					action.setUnvalidatedKeyBindingData(null);
				}
				return;
			}

			// 1) update the options with the new value
			ActionTrigger newTrigger = keyBinding.getActionTrigger();
			String fullName = getFullName();
			keyStrokeOptions.setActionTrigger(fullName, newTrigger);

			// 2) update our state so the UI shows the new value
			currentKeyStroke = newTrigger.getKeyStroke();
			currentMouseBinding = newTrigger.getMouseBinding();
		}
A class to store current and original values for key strokes and mouse bindings.  This is 
used to apply changes and restore default values.
Ghidra/Framework/Docking/src/main/java/docking/actions/KeyBindings.java