W or Up arrow to move forward. S or Down arrow to move backward. Right and Left arrows to turn. A and D to move right and left. Press R to generate maze. !WARNING! Tile Size below 12 can require multiple attempts at generation. Tile Size below 20 can lag your computer while generating.
Code by @griffpatch