protected boolean resizeTerminal(int cols, int rows) {
		boolean affected;
		synchronized (lock) {
			affected = buffer.resize(cols, rows);
			bufPrimary.resize(cols, rows);
			bufAlternate.resize(cols, rows);
		}
		if (affected) {
			Swing.runIfSwingOrRunLater(() -> {
				modelChanged();
				panel.placeCursor(true);
			});
		}
		return affected;
	}
This will be difficult to implement in Swing/AWT, since the OS and Java will already have
mapped the key, including incorporating the NUMLOCK state. Ignore until it matters.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/terminal/TerminalLayoutModel.java