isDown) => {
            e.preventDefault()
            const { keyCode } = e
            switch (keyCode) {
              case 87: // w
                this.keys.w.isDown = isDown
                break
              case 38: // arrow up
                this.keys.w.isDown = isDown
                break
              case 32: // space
                this.keys.space.isDown = isDown
                break
            }
          }

          document.addEventListener('keydown', e => press(e, true))
          d