If you’re stuck inside a VirtualBox VM and can’t escape because your keyboard doesn’t have a Right Ctrl key, fix it by changing the Host key in VirtualBox’s preferences — it takes under a minute. VirtualBox uses the Host key to release keyboard and mouse control back to your real computer, and the default (Right Ctrl) is missing on many laptops and compact keyboards.
How to Change the Host Key in VirtualBox
These steps apply to VirtualBox 6.1 and 7.x on Windows 10/11, current macOS versions, and modern Linux distributions.
Fix #1: Change the Host Key Globally in Preferences
This is the main fix. It changes the Host key for all your VMs at once.
- Open VirtualBox Manager (no VM needs to be running).
- In the menu bar, click:
- Windows / Linux: File → Preferences…
- macOS: VirtualBox → Preferences…
- Select the Input tab.
- Under Virtual Machine, find the Host Key Combination field.

- Click inside the Host Key Combination shortcut field, it will clear and wait for input.
- Press the key (or key combo) you want to use. Good choices:
Left Ctrluseful if Right Ctrl is missingRight Altcommon on European keyboardsScroll Lockrarely used by anything else, popular workaroundF12works well if it has no other function on your keyboard
- Click OK to save.

Every VM you open from now on will use the new Host key. You can always check what it’s set to by glancing at the bottom-right corner of any running VM window, as VirtualBox displays the current Host key there.

Fix #2: Change the Host Key from a Running VM
If you’re already inside a VM and need to change the Host key without closing it, you can do it from the VM window itself.
- Look at the status bar at the bottom-right of the VM window. You’ll see something like Host Key: Right Ctrl.
- Right-click that Host Key indicator.
- Select Keyboard Settings (the exact label may say Input Settings depending on your version).
- In the dialog that opens, click inside the Host Key Combination field and press your new key.
- Click OK.

This changes the global Host key setting, not just for the current VM session.
Common Host Key Problems (and Quick Fixes)
No Right Ctrl key on your keyboard
This is the most common reason people land here. Change the Host key to Left Ctrl, Scroll Lock, or Right Alt using Fix #1 above. Scroll Lock is a reliable pick because almost nothing else uses it.
Host key doesn’t release the mouse or keyboard
First, check the bottom-right status bar to confirm which key VirtualBox actually thinks is the Host key, as it may have been changed previously. If the right key is shown but still doesn’t work, your Ctrl or Alt key may be “stuck” inside the guest OS. Try pressing and releasing Ctrl + Alt together, or tap Esc a few times. If that fails, change the Host key to Scroll Lock in Preferences, as this clears the stuck-key state in most cases.
Host key conflicts with Windows or desktop shortcuts
Avoid mapping the Host key to combinations like Ctrl+Alt, because Windows intercepts those before VirtualBox sees them. Stick to a single, rarely-used key like Scroll Lock or Right Alt.
On macOS, the key labels look different
macOS builds of VirtualBox historically defaulted to Left ⌘ as the Host key. You configure it in exactly the same place, at VirtualBox → Preferences → Input → Host Key Combination, but pick something that doesn’t clash with macOS system shortcuts. Avoid Command if you can.
Tip: Install Guest Additions to Use the Host Key Less
When VirtualBox Guest Additions are installed inside your VM, mouse integration becomes seamless. Your cursor moves in and out of the VM window automatically without needing to press the Host key. You’ll still need the Host key for shortcuts like Host + F (toggle full screen) and Host + L (seamless mode), but you won’t need it just to move the mouse around. If you haven’t installed Guest Additions yet, it’s worth doing. For example, you can see how this works when you install Ubuntu in VirtualBox.
Useful Host Key Shortcuts
| Shortcut | What it does |
|---|---|
Host (alone) | Release mouse/keyboard back to host OS |
Host + F | Toggle full-screen mode |
Host + L | Toggle seamless mode (requires Guest Additions) |
Host + C | Toggle scaled mode |
Host + Home | Open the mini-toolbar in full screen |
Conclusion
For most people, especially those on laptops without a Right Ctrl key, changing the Host key to Scroll Lock or Left Ctrl via File → Preferences → Input solves the problem immediately. If you’re also tired of manually releasing the mouse every time you switch windows, installing Guest Additions is the longer-term fix that makes VirtualBox feel much more natural to use. You can also customize your experience further by learning how to share folders between guest and host for a smoother workflow.
