Element.requestPointerLock()

Click the div to request pointer lock.

x:
y: