Up and down arrows to control the speed the cannon turns at. Left and right arrows to turn the cannon. power slider to adjust power. Space bar to fire. (fires after you let go of the space bar) You can also drag and drop the cannon by it's base.
This is just a test I made, not sure whether to incorporate this into a game. Feel free to use but if you upload a project credit this project and send me the link.