Use left & right arrow keys to move left and right respectively. Avoid the balls or before you know it, the game will be over. A Makey Makey can be used for this as well.
Looking at Dodge the Ball 2.0 by SugarStorm to create this game. This is the final version of the game. Extras that I could add: Another sprite, such as a heart, for added life; Slow down some balls; Make a two-player game.