For less lag: turbowarp.org/557681330 WASD Keys - Move Arrow Keys - Turn Q/E Keys - Fly up/down Move the mouse to the top of the screen to change settings.
If you want to know how this works, it's based on a 3D engine. I recommend looking up "3d engine tutorial" in the Scratch search bar and starting there.