Add keyboard input

window.onkeydown is called repetitively if a key is held down.