console.keyhit
The console.keyhit property checks if a key has been pressed, returning true or false otherwise.
true
false
Example
--! luart-extensions import console print("Waiting for a key press...") while not console.keyhit do sleep() end