Use arrow keys or wasd to move. Press 'L' if you get stuck in a wall (You won't lose your progress.) If you still can't get out, or something happened, press 'R' to go back a bit. (You will only lose a little bit of progress.
Thanks to a scratcher for the scroll script.