This adds the getkey command that opens the door to games! I was surprised this isn't already built-in (although I did find the undocumented key variable).
Accompanying getkey is readkey, which is the same but will not block if there is no key waiting.
This adds the
getkey
command that opens the door to games! I was surprised this isn't already built-in (although I did find the undocumentedkey
variable).Accompanying
getkey
isreadkey
, which is the same but will not block if there is no key waiting.