@Override
	protected void okCallback() {
		KeyStroke newKs = keyEntryPanel.getKeyStroke();
		String errorMessage = toolActions.validateActionKeyBinding(action, newKs);
		if (errorMessage != null) {
			setStatusText(errorMessage);
			return;
		}

		clearStatusText();

		KeyStroke existingKeyStroke = action.getKeyBinding();
		if (Objects.equals(existingKeyStroke, newKs)) {
			setStatusText("Key binding unchanged");
			return;
		}

		action.setUnvalidatedKeyBindingData(newKs == null ? null : new KeyBindingData(newKs));

		close();
	}
Sets the given keystroke value into the text field of this dialog
@param ks the keystroke to set
Ghidra/Framework/Docking/src/main/java/docking/actions/KeyEntryDialog.java