T - Throw the ball Space - Hit with the bat
Nochalski made the original but needed help, so i fixed it! Here is the step by step tutorial: https://scratch.mit.edu/discuss/post/7400200/