use arrow keys to move the basketball right and left. Press space to shoot but make sure the power is right.
I got the idea from https://scratch.mit.edu/projects/62361110/ and the power bar from my other game https://scratch.mit.edu/projects/53788234/.