Input.is_key_pressed

if a key was pressed this frame

class Input
static
bool
is_key_pressed

Meta