How to Change the Host Key in VirtualBox (2026 Update)

·
4 min read

Help Desk Geek is reader-supported. We may earn a commission when you buy through links on our site. Learn more.

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.

  1. Open VirtualBox Manager (no VM needs to be running).
  2. In the menu bar, click:
    • Windows / Linux: FilePreferences…
    • macOS: VirtualBoxPreferences…
  3. Select the Input tab.
  4. Under Virtual Machine, find the Host Key Combination field.
VirtualBox Preferences window open on the Input tab, showing the Virtual Machine section with the Host Key Combination shortcut field highlighted
  1. Click inside the Host Key Combination shortcut field, it will clear and wait for input.
  2. Press the key (or key combo) you want to use. Good choices:
    • Left Ctrl useful if Right Ctrl is missing
    • Right Alt common on European keyboards
    • Scroll Lock rarely used by anything else, popular workaround
    • F12 works well if it has no other function on your keyboard
  3. Click OK to save.
VirtualBox Preferences Input tab with a new key (e.g. Scroll Lock) now shown in the Host Key Combination field, before clicking OK

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.

VirtualBox VM status bar bottom-right corner showing the current Host Key label, e.g. "Host Key: Scroll Lock"

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.

  1. Look at the status bar at the bottom-right of the VM window. You’ll see something like Host Key: Right Ctrl.
  2. Right-click that Host Key indicator.
  3. Select Keyboard Settings (the exact label may say Input Settings depending on your version).
  4. In the dialog that opens, click inside the Host Key Combination field and press your new key.
  5. Click OK.
Running VM window with right-click context menu on the Host Key indicator in the status bar, showing Keyboard Settings option

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

ShortcutWhat it does
Host (alone)Release mouse/keyboard back to host OS
Host + FToggle full-screen mode
Host + LToggle seamless mode (requires Guest Additions)
Host + CToggle scaled mode
Host + HomeOpen 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.