Press the Right Ctrl key (Host key) to release the cursor. Then go to VirtualBox menu → Input → Mouse Integration → toggle off/on.