Press right arrow (or d) and left arrow (or a) to change the angle of elevation in which the cannon will fire at. Hold down space after that, the longer space is held down for the higher the velocity of the cannon ball.
I made it