clearKeysPressed method Null safety
visibleForTesting">@visibleForTesting
Clears the list of keys returned from keysPressed.
This is used by the testing framework to make sure tests are hermetic.
Implementation
@visibleForTesting
void clearKeysPressed() => _keysPressed.clear();