⟩ How to fire a key event in my test code to make the program act as if a user pressed a key?
Two ways to implement it in code: generating OS level key event use Display.post(Event) or use Widge.notifyListeners(...) to just notify a widget's listeners.