q5play
    Preparing search index...

    Variable keyIsPressed

    keyIsPressed: boolean

    🖲 True if a key is currently pressed, false otherwise.

    q5.draw = function () {
    if (keyIsPressed) background(0.4);
    else background(0.8);
    };