clearKeysPressed method

  1. @visibleForTesting
void clearKeysPressed()

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();