CRT Documentation: Reference

KeyPressed

Determines if a key has been pressed on the keyboard.

function KeyPressed: boolean;

Parameters

This function has no parameters.

Return Values

True if a key has been pressed, False if a key has not been pressed.

Remarks

If the return value is True, then a key can be read using the ReadKey function.

See Also

Crt Overview, ReadKey