Use the arrow keys to move your cursor to the exit. The cursor stops at each wall. Don't leave the screen.