IsKeyPressed method

bool IsKeyPressed(
  1. KeyboardKey key
)

Check if a key has been pressed once

Implementation

bool IsKeyPressed(
  KeyboardKey key,
) => run(
  () => _debugLabels.IsKeyPressed(key),
  () => _flat.IsKeyPressed(
    key.value,
  ),
);