I think the active control actually gets the mouse-up event but maybe the cameracontroller behaves inconsistently. However when switching to a different application (alt+tab) the state will still be messed up.
The only fix I can think of is to register events for loosing/getting focus. I think they're called onblur
and ongotfocus
or
similar.
Cheers