Use W and S or ↑ and ↓ keys to move Use → and ← keys to rotate the camera. When you get a huge lag spike you've finished the maze.
The Maze is made by taking the direction of the player, taking a certain radius and calculating the distance between the farthest distance in a certain direction and the player. Then it renders lines based off of the distances provided and gives them certain shading. This is called raycasting.