Keyboard input/Keypress check

From Rosetta Code
Revision as of 23:50, 7 October 2010 by rosettacode>Markhobley (Initial content)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Keyboard input/Keypress check is a draft programming task. It is not yet considered ready to be promoted as a complete task, for reasons that should be found in its talk page.

Determine if a key has been pressed and store this in a variable.

BASIC

ZX Spectrum BASIC

10 REM k$ will be empty, if no key has been pressed
20 LET k$ = INKEY$