tick method

void tick()

Implementation

void tick() {
  keysPressed.fillRange(0, keysDown.length, false);

  if(document.pointerLockElement == null) {
    cursorLocked = false;
  }
}