isKeyPressed(k?: Key | Key[]): boolean

If any or certain key(s) are just pressed last frame.
onUpdate(() => {
    if (!isKeyPressed()) return // early return as no key was pressed

    if (isKeyPressed("space")) debug.log("Pressed the jump key")
    if (isKeyPressed(["left", "right"])) debug.log("Pressed any of the move keys")
})

sincev3001.0