Use arrow keys to move Scratchy. Avoid the turnstile, the green monster, the stone, and the walls with teeth. Your first goal is to get the key, then use to key and touch the lock, which will open the gate. After that, try to get past the walls and the rolling stone, and get to the door(the blue light) to win.
This came from the book "Super Scratch Programming Adventure". It's a book that teaches you programming by doing a step-by-step tutorial for each game. This is what inspired this program and many others.