Press the up, down, left, and right key to move crab. Collect points, beat 10,000 to win.
I used a tutorial on scratch, and just came up with the rest.