inputTest method
Simulates keyboard input for testing by parsing input and emitting an event.
Implementation
void inputTest(String input) {
final rawBytes = input.codeUnits.toList();
final event = KeyParser.parse(rawBytes);
_controller.add(event);
}