isKeyPressed method

bool isKeyPressed (LogicalKeyboardKey key)

Returns true if the given KeyboardKey is pressed.

Implementation

bool isKeyPressed(LogicalKeyboardKey key) => RawKeyboard.instance.keysPressed.contains(key);