press method
Presses one key, given as its keystroke name, for example enter,
ctrl+c, shift+tab, alt+left, pgdown, f5, space or a.
The key goes through the real input decoder as the bytes a terminal
sends, so the model gets the same KeyPressMsg as from a keyboard.
Throws ArgumentError when the decoder cannot read that keystroke (for
example shift+f3, whose bytes are also a cursor position report).
Implementation
Future<void> press(String key) => _sendAll([keyPressFor(key)]);