Use the arrow keys. I put comments inside so you know what does what. This game is made in pen, but for the wall detection, I had to put a hidden sprite with a ghost effect of 100.
Credi2ppl Known issues (If you can tell me how to fix these, I'll fix them ASAP): -You can go through walls by turning around in one. -Pressing the up/down and left/right keys at the same time allows you to go through walls at an angle. Tell me any more glitches you find.