I found this handy feature in Remotix app and it is very convenient. The guest VM should handle the keyboard when the mouse pointer of OS X is inside the window of VM. If the user moved mouse out of the VM's window OS X should rule the keyboard.