Skip to content

keyboard

keyboard(play, map?, options?): () => void

Presses keys for movements: Space held while in the air, ArrowDown while crouched, an arrow tap per step to the side, Enter on a clap. Returns a function that stops it.

On

Partial<Record<Action, string>>

KeyboardOptions

() => void