Sign in Join
FPDoc Onlineexperiment

keypressed function

In unit WinCRT

Check if a key was pressed.

Declaration

pascal
function keypressed: Boolean

Function result

True if the user pressed a key, false if not.

Description

KeyPressed returns True if the user pressed a key, or False if not. It does not wait for the user to press a key.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.