Use the "AD" or left-right arrow keys to turn in the hallway. I used the pen tool. In reality, it is just some triangles moving across the screen. You could do this in a much simpler way with sprites.
I got the idea from somewhere. I forgot where. I did not copy any code. Comment if you recognize the idea.