keyPressed

Checks if a key matching the given integer key code is currently pressed.

For a description of key codes, please see waitKey.

Usage

    if keyPressed(36) then ...