Added a conditional for when pointer lock is released.