nimos100 thank you. It is definitely is a mess and not in order currently. I will try to get on later and better explain it. Basically spacebar pitches the ball (just the first time), and left mouse click swings, double-click on left mouse is power swing, right mouse click is bunt.
The main issue is the fact that the bat is just not swinging. It is so simple I don't understand why it isn't swinging, it was previously swinging, then I made some changes and now it is not.