Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm not using an apple keyboard and don't have a Left ⌘. Can I change the "Host Key" to be the Right ⌘? How?

share|improve this question

The GUI setting is under Preferences -> Input -> Virtual Machine:

enter image description here

share|improve this answer

This sets the host key to the right command key (VirtualBox 4.3.10):

VBoxManage setextradata global GUI/Input/HostKeyCombination 54

The command will accept any value, but VirtualBox will not start if you supply an invalid value. 55 is the standard left command key, 61 is the right alt key. I found the values via educated guesses (aka "playing around").

share|improve this answer
Your sir are awesome. Why is this not an option in the VirtualBox GUI Ill never understand. – DelightedD0D Jul 27 '14 at 10:13

There is a bug that appeared in VirtualBox 4.3.8 (maybe earlier?) that prevents the Virtualbox “Host Key” from being changed. It got fixed in VirtualBox 4.3.14. If you are using a VirtualBox version that is affected by the bug, here is a workaround:

After changing the host key, select some other configurable shortcut (no need to change it), and then click OK.

share|improve this answer

You could try adding this to private.xml in KeyRemap4MacBook:

<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::COMMAND_L</autogen>

It might not work if you don't have a physical keyboard with a left command though.

share|improve this answer
thx. It's an idea;haven't tried yet as I'm holding out to see if anyone knows of a native way to do it. Turns out it's not too critical provided I ensure that the "mini toolbar" is enabled for full-screen mode as that allows me use the mouse to get out again... (provided the guest has a working mouse). – John2095 Feb 7 '13 at 1:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.