CRT Documentation: Reference |
Determines if a key has been pressed on the keyboard.
function KeyPressed: boolean;
True if a key has been pressed, False if a key has not been pressed.
If the return value is True, then a key can be read using the ReadKey function.
Crt Overview, ReadKey