Arrow keys to move. There's no end point; just explore. Press the F or M key to show a minimap. You can generate maps of different sizes by pressing numbers 1 through 7. (The generated map will be of size pow(2, 2 + N), where N is the number you pressed. That means the largest map is 512x512; be very patient to let that one load!) Or you can press 0 to enter your own dimensions (the width and height don't need to be the same).
Silly script to generate a videogame-like maze. This always generates finite mazes within a given rectangular space. This revision has a minimap renderer, as well as "solid" walls (you can't press the arrow keys to move through them anymore) and a way to adjust the size of the map (from presets or a custom size).