_keyPressed

Input / Keyboard

Description

The boolean system variable keyPressed is true if any key is pressed.

Syntax

_keyPressed

Parameters

None

Returns

bool

Related

Under the Hood

From Processing.h:

bool _keyPressed = false; return _keyPressed;