Arrow keys to move. Press D to dribble on offense, and press space to shoot. The closer to the basket the easier it is to make the shot. On defense press D to steal the ball, but there is a risk that you will get a foul. You have to dribble for the ball to not get stolen from you.