Use arrow keys or AD to move your paddle. Don't let the ball touch the bottom. Try to hit all the boxes.
Scratch helped me to do the script.