Use arrow keys (or WASD) to move about the maze. Click (or space) to collect objects to help find your way (when near). Click on object on screen or in bottom bar to use. Pay the Wizard to show the way to the exit. When it gets dark, if you can't see, just wait.
Credit to S65 for the original 3D Raycaster http://scratch.mit.edu/projects/1135568/