Use the arrow keys and don't glitch the walls or something. Check out the strategy guide (this has solutions) here: http://www.koopatv.org/2017/08/the-wonderful-1237-guide-scott-walker.html
Play the entire The Wonderful 1237 here: http://www.koopatv.org/2016/12/play-the-wonderful-1237-game-here.html Mazes made from this: http://www.mazegenerator.net/