WASD to move, space to regen the dungeon if you get stuck or if the starting dungeon has no accessible doors. Hold the direction you are going in when you enter a door or the room won't generate.
I'm working on a Roguelike game called "Frogue" featuring a frog, and Dungeon generation was the first thing I needed done. Feel free to use this for your own games, just credit me in the credits. Frogue by Walrus227