Function Input.wasKeyDown

bool wasKeyDown (
  KeyboardKey key
) @property const;