The Mac virtual keyboard, also known as the Accessibility Keyboard or Keyboard Viewer, is a built-in feature in macOS that lets you type without a physical keyboard. You can enable it from System Settings, use it with a mouse, trackpad, or Touch Bar, and customize it for your needs.
What Is the Virtual Keyboard on a Mac?
macOS includes two distinct on-screen keyboard tools: the Accessibility Keyboard (full-featured, with word prediction and custom panels) and the Keyboard Viewer (a simple visual representation of the physical keyboard). Both serve the same basic purpose—providing a way to input text without a physical keyboard—but they differ in features and accessibility. The Accessibility Keyboard is the more modern and capable option, introduced in OS X Yosemite (10.10) and still present in current macOS versions. It includes a typing suggestions bar, sticky keys, slow keys, and the ability to create custom keyboard layouts for specialized tasks.
How to Enable the Virtual Keyboard
Enabling the virtual keyboard takes only a few clicks. The exact steps depend on your macOS version:
- macOS Ventura and later: Go to → System Settings → Accessibility → Keyboard → Show Accessibility Keyboard. Toggle it on.
- macOS Monterey and earlier: Go to → System Preferences → Accessibility → Keyboard → Show Accessibility Keyboard (or Enable Accessibility Keyboard).
- Keyboard Viewer (older method): Go to System Settings/Preferences → Keyboard → Input Sources → check "Show Input menu in menu bar." Then click the input menu icon in the menu bar and select "Show Keyboard Viewer."
Once enabled, the virtual keyboard appears as a floating window that you can move and resize. You can click its keys with your mouse or trackpad, or if you have a Touch Bar, the virtual keyboard can display there as well.
Key Features and How They Work
The Accessibility Keyboard is more than just a picture of keys. It offers several features that make typing easier for people with motor or vision impairments:
- Word prediction: As you type, the keyboard suggests words in a bar above the keys. Click a suggestion to insert it, which reduces the number of keystrokes needed.
- Sticky Keys: This lets you press modifier keys (like Command, Shift, Option) one at a time instead of holding them down. For example, you can press Command, release it, then press C to copy.
- Slow Keys: This adds a delay between when a key is pressed and when it registers, which helps if you accidentally press keys while moving across the keyboard.
- Custom panels: You can create your own keyboard layouts with specific keys, labels, and even images. This is useful for specialized software, games, or communication boards.
- Dwell control: With an external eye-tracking or head-tracking device, you can set the keyboard to click a key after you dwell on it for a set time.
These features are all configurable in the Accessibility Keyboard settings, which you can open by clicking the gear icon on the keyboard window.
Using the Virtual Keyboard with a Mouse or Trackpad
Using the virtual keyboard with a mouse or trackpad is straightforward: just move the pointer to a key and click. However, there are a few tips to make it more efficient:
- Enable Hover Text (in System Settings → Accessibility → Zoom) to magnify the key you are pointing at, which helps if you have low vision.
- Use Switch Control (System Settings → Accessibility → Switch Control) to navigate the keyboard with adaptive switches, a game controller, or a keyboard key. This is a powerful alternative for people who cannot use a mouse.
- If you have a Touch Bar on your MacBook Pro, the virtual keyboard can appear there, freeing up your screen. To enable this, go to System Settings → Keyboard → Touch Bar Settings and choose "Accessibility Keyboard" as the Touch Bar shows.
The virtual keyboard works in any app that accepts text input, including Safari, Pages, Microsoft Word, and even the login window (though you may need to enable it there separately).
Common Problems and Solutions
Users often run into a few issues with the virtual keyboard. Here are the most common ones and how to fix them:
- The virtual keyboard does not appear: Make sure you have toggled it on in the correct location (Accessibility → Keyboard). If it still doesn't show, restart your Mac or check that you are not in a full-screen app that hides it.
- The keyboard is too small or too large: You can resize the window by dragging its edges. For the Accessibility Keyboard, you can also adjust the key size in the settings gear icon.
- Word prediction is not working: This feature requires that you have "Predictive" enabled in System Settings → Keyboard → Edit → Text Input. Also, it only works in apps that support the system-wide text input, not in all third-party apps.
- The keyboard disappears when I click outside it: This is normal behavior for the Keyboard Viewer, but the Accessibility Keyboard stays on top. If you want the Accessibility Keyboard to stay visible, make sure it is not set to "Minimize" in its settings.
- I cannot type numbers or special characters: Press the Shift or Option key on the virtual keyboard to see the alternate characters. The keyboard layout updates in real time.
If none of these help, try resetting the keyboard settings by toggling the Accessibility Keyboard off and on, or restarting your Mac.
Alternatives to the Built-in Virtual Keyboard
While the built-in virtual keyboard is sufficient for most users, some may need more advanced features. Here are a few alternatives:
- Third-party on-screen keyboards: Apps like Karabiner-Elements (for remapping keys) or BetterTouchTool (for custom Touch Bar buttons) can enhance typing, but they are not full virtual keyboards. For a true alternative, consider Click-N-Type (free, with word prediction) or Hot Virtual Keyboard (commercial, with many layouts).
- Voice control: macOS has a built-in Voice Control feature (System Settings → Accessibility → Voice Control) that lets you dictate text and issue commands. This is often faster than clicking keys.
- Dictation: Press the microphone key (or press Fn twice) to use dictation anywhere you can type. This is not a virtual keyboard, but it is a common alternative for hands-free typing.
- External hardware: A Bluetooth keyboard or a USB keyboard is the simplest alternative if you need a physical typing experience. Many users prefer this for long typing sessions.
Each alternative has trade-offs in cost, learning curve, and accessibility. The built-in virtual keyboard is free and requires no extra setup, making it the best starting point.
Cost and Safety Considerations
The virtual keyboard is completely free and built into macOS. There are no hidden costs, and it does not require an internet connection. From a safety perspective, the virtual keyboard is a secure way to type passwords because it does not log keystrokes (unlike some third-party keyloggers). However, be aware that on-screen keyboards are not immune to screen-recording malware, so always keep your Mac updated and use reputable security software.
When using the virtual keyboard, ensure that your Mac's accessibility settings are not accidentally changed by another user. You can lock these settings with a password by going to System Settings → Privacy & Security → Accessibility and clicking the lock icon.
Frequently Asked Questions
How do I show the keyboard on my Mac screen?
Go to → System Settings → Accessibility → Keyboard and toggle on "Show Accessibility Keyboard." The keyboard will appear as a floating window. For the older Keyboard Viewer, enable the input menu in Keyboard settings and select "Show Keyboard Viewer" from the menu bar icon.
Why is my virtual keyboard not working?
First, ensure it is enabled in System Settings. If it is, try toggling it off and on. If it still doesn't work, check that you are not in a full-screen app that hides it, and restart your Mac. Also, verify that the keyboard is not minimized in its settings.
Can I use the virtual keyboard to type passwords?
Yes, you can type passwords with the virtual keyboard. It is generally safe because it does not store keystrokes, but be aware that screen recording software could capture it. For maximum security, use the built-in password manager and avoid typing passwords in public places.
How do I make the virtual keyboard bigger?
You can resize the Accessibility Keyboard window by dragging its edges. For more precise control, click the gear icon on the keyboard and adjust the key size or the overall scale. The Keyboard Viewer can also be resized by dragging its corners.
Does the virtual keyboard work in all apps?
Yes, the virtual keyboard works in any app that accepts text input, including web browsers, word processors, and messaging apps. However, some apps with custom input fields (like games) may not respond to the virtual keyboard. In such cases, you may need to use an alternative.
Can I use the virtual keyboard with an external display?
Yes, the virtual keyboard appears on your main display, but you can drag it to any connected monitor. If you use a MacBook with a Touch Bar, you can also set the Touch Bar to show the virtual keyboard, which is convenient when using an external display.