Use the number 1 key to throw the ball, and use the left arrow key to hit the ball.
Thanks to gumball098 the origanal project.At first I was trying to make it on my own but the strikes was not working so It took hours to fix the strixes but it still did not work out so i remixed it. If you want you can use the youtube link for this tutorial from kid coding playground https://www.youtube.com/watch?v=1ZRbOXqQIvo