keyPressed method

bool keyPressed(
  1. int key
)

Implementation

bool keyPressed(int key) =>
    keyState[key] ?? false;