Hmm. I am indeed using a mouse pad but the mouse itself works just fine while keys are pressed, it's just the cannon that stops responding.
I had such an issue with an other game in a different jam. It definitely works fine with a regular mouse. Just a quirk of mouse pads I guess.