Use left and right arrow keys to move, up arrow to jump. Press space to shoot the basketball. Try to get the ball through the middle of the hoop to get 2 points.
Thanks to AISweigart for the code.