Use the left and right arrows to chase the ball.
This sample also shows how to use make a block. It's useful here because there's a set of commands that are the same for both directions. Ideas for modifying this - change the background, add a net, add another player. This sample uses Griffpatch's awesome walk cycle for the Scratch cat.