Writes a common key input sequence (Windows Console VT / xterm conventions).
public AnsiWriter WriteKeyEvent(AnsiKeyEvent keyEvent, bool applicationCursorKeysMode = false)
The key event.
When true, arrow/Home/End without modifiers are emitted in SS3 form (ESC O...).
This method is intended for test and host scenarios; it always writes the sequence regardless of Capabilities. It does not attempt to cover every terminal key protocol.