they can be tricky, but very useful in ctf games. Basically, the idea is to be moving quickly sideways, and do a backflip. However, normally when you do a backflip, you hold UP and right click. TO do a cannonball just tap up and right click directly after.
It takes timing and practice, but is worth it because it speeds you up horizontally.