Press the space key to attack. You have to get as many points as possible before you get 3 strikes and the baseball attacks you.