Hi @TheLaidBackLama,
Unfortunately, this is not really possible in CoBlocks or via the Javascript Public API.
I submitted this as a feature request last year, so the team are aware of it. See Feature Request: add Camera.mouseLocked to the public API for more details, and like the post if you’d like to see this happen.
Many thanks,
Geoff