Sidharth R
  • Home
  • Posts
  • Journal
  • Home
  • Posts
  • Journal
  • Search
  1. Home
  2. Posts
  3. How to Fix the Apostrophe (') Key Not Working in VirtualBox Ubuntu

How to Fix the Apostrophe (') Key Not Working in VirtualBox Ubuntu

Updated: 07 Apr 2026 ⚬ Page views: loading...

If you’re running Ubuntu inside Oracle VM VirtualBox and notice that pressing the apostrophe (’) or tildae (`) key doesn’t show anything until you hit space, you’re not alone.

This issue is caused by “dead keys” in keyboard layouts, where keys are designed to combine with others to create accented characters.

In this guide, I’ll show you two simple fixes to make your apostrophe key work.

Root cause

What you’re seeing is a keyboard layout / “dead key” behavior, not a VirtualBox bug.

In many layouts (like US International), the ' key is treated as a dead key i.e. it waits for the next character to combine (e.g., ' + e → é). That’s why nothing appears until you press space.

Fix: Change keyboard layout to a non-dead-key version

Method 1: Using GUI to fix

On your Ubuntu VM (inside Ubuntu):

  1. Open Settings
  2. Go to Keyboard
  3. Under Input Sources, check your layout
  4. If it says something like: English (US, intl., with dead keys)
  5. Change it to: English (US)
  6. Remove the “intl” layout

Method 2: Using terminal

Run:

BASH
setxkbmap us

To make it permanent:

BASH
sudo dpkg-reconfigure keyboard-configuration

Then choose:

  • Layout: English (US)
  • Variant: English (US) (not international)

After changing, log out and log back in (or reboot VM).

Keep reading

  • Grep Failing on Hyphen Patterns? Try This Fix
  • 4 Ways to Watch Logs Live in Linux
  • How to Fix SSH Error: Could not open a connection to your authentication agent
  • Kill Any Process Using a Port in Powershell

  • Home
  • Posts
  • Journal
  • Quotes
  • Links worth your time
  • About
  • Contact
  • Style guide
  • RSS
© 2026 Sidharth R.
Licensed CC BY-NC-SA 4.0