The Focus widget in Flutter can detect and handle KeyEvents. However, it will trigger on both key down and up events (so it calls its assigned callback twice for each press). Given a KeyEvent, how can I detect if it was a key down or up event so I can make the callback only react to one of those two events?
Thanks!