How to release mouse capture in VirtualBox?
You need to press "host key" which is written in right bottom corner of  VirtualBox window. 

Looking at your screenshot its Right Ctrl.   

Its not default Mac Command ⌘ because you are running VirtualBox on Windows host, which you are accessing using TeamViewer. 

See virtualBox manual: link