Investigation indicates that this is caused by out-of-order receipt of input-device-state vs key events. A successful run is:
MockEventFilter: input-device-state
MockEventFilter: key 97 down
MockEventFilter: key 97 up
MockEventFilter: key 65506 down
MockEventFilter: key 65506 up
Whereas a failing run is:
MockEventFilter: key 97 down
MockEventFilter: key 97 up
MockEventFilter: input-device-state
MockEventFilter: key 65506 down
MockEventFilter: key 65506 up
Investigation indicates that this is caused by out-of-order receipt of input-device-state vs key events. A successful run is:
MockEventFilter: input-device-state
MockEventFilter: key 97 down
MockEventFilter: key 97 up
MockEventFilter: key 65506 down
MockEventFilter: key 65506 up
Whereas a failing run is:
MockEventFilter: key 97 down
MockEventFilter: key 97 up
MockEventFilter: input-device-state
MockEventFilter: key 65506 down
MockEventFilter: key 65506 up