Wait 2 seconds, and then when the baseball is touching the bat press space to hit it.
This was not by me I just fixed it