Yes, you can use a virtual keyboard on a Mac. It is built into macOS as the Accessibility Keyboard, and it appears on screen so you can type with a mouse, trackpad, or touch screen. This article explains how to turn it on, customize it, and use it effectively, along with common troubleshooting steps.

What Is the Virtual Keyboard on a Mac?

The virtual keyboard on a Mac is an on-screen keyboard that works like a physical one. It is part of macOS’s accessibility features, designed for people who have difficulty using a physical keyboard, but it is also useful for touch-screen Macs, kiosk setups, or when your physical keyboard stops working. The Accessibility Keyboard is not the same as the emoji picker or the keyboard viewer; it is a full, resizable keyboard window that can include function keys, navigation keys, and a trackpad.

How to Turn On the Virtual Keyboard

There are two main ways to enable the Accessibility Keyboard, depending on your macOS version:

  • System Settings (macOS Ventura and later): Go to System Settings > Accessibility > Keyboard, then toggle on Accessibility Keyboard.
  • System Preferences (macOS Monterey and earlier): Go to System Preferences > Accessibility > Keyboard, then check Show Accessibility Keyboard.

Once enabled, the keyboard appears as a floating window. You can also turn it on quickly by going to Apple menu > System Settings > Accessibility > Keyboard and clicking the “Show” button. If you want a faster way, you can create a keyboard shortcut in the same settings pane.

How the On-Screen Keyboard Works

The virtual keyboard works exactly like a physical one: you click or tap each key to input that character. It supports key combinations (like Shift, Command, and Option) by clicking the modifier key first, then the other key. For example, to type a capital “A,” click Shift, then “A.” The keyboard also has a “sticky keys” feature that lets you press modifiers one at a time without holding them down.

The keyboard window is movable and resizable. You can drag it anywhere on the screen, and you can adjust its size by dragging the bottom-right corner. It stays on top of other windows by default, but you can change that in the keyboard’s settings.

Customizing the Virtual Keyboard

You can customize the Accessibility Keyboard to show only the keys you need. To do this:

  1. Open the Accessibility Keyboard (if it is not already open).
  2. Click the gear icon (or the “Options” button) at the top-right of the keyboard window.
  3. Choose Open Keyboard Settings.
  4. In the settings, you can choose between a standard layout or a “Dwell” layout (for head-tracking or switch control).
  5. You can also add or remove rows of keys, such as the number row, function keys, or a trackpad.

For example, if you rarely use the F-keys, you can hide that row to make the keyboard smaller. If you need arrow keys, you can add them. The customization is saved and will be used next time you open the keyboard.

Common Problems and Fixes

Here are a few issues you might run into and how to solve them:

  • Keyboard does not appear: Check that you enabled it in the correct settings pane. If you are on an older macOS, the path is different. Also, make sure you are not in a full-screen app that hides system windows.
  • Keyboard is too big or too small: Drag the corner of the keyboard window to resize it. You can also change the font size of the key labels in the keyboard settings.
  • Keys do not respond: Make sure the app you are typing into is active (click on the text field first). Some apps, like games, may not accept input from the virtual keyboard.
  • Keyboard disappears when switching apps: This can happen if the app has its own keyboard settings. Try closing the app and reopening it, or restart the Mac.

Virtual Keyboard vs. Physical Keyboard

The virtual keyboard is not a replacement for a physical keyboard for fast typing. It is slower because you have to click each key, but it is ideal for accessibility, touch screens, or when your physical keyboard is broken. It also takes up screen space, which can be annoying on a small display. However, it is free and built into macOS, so it is a good temporary solution.

If you need a more advanced on-screen keyboard, there are third-party apps that offer predictive text, word completion, and custom layouts, but the built-in one is sufficient for most users.

Frequently Asked Questions

Can I use the virtual keyboard with a touch screen Mac?

Yes, the Accessibility Keyboard works with touch screens, but only on Macs that have a touch screen (which is rare). Most Macs do not have touch screens, so you will use a mouse or trackpad. If you have an iPad with a keyboard case, the virtual keyboard is a different feature.

Does the virtual keyboard work in all apps?

It works in most apps that accept text input, including Safari, Pages, and Messages. However, some apps that capture keyboard events directly (like games or remote desktop apps) may not respond to the virtual keyboard. In those cases, you may need to use a physical keyboard.

Can I use the virtual keyboard to type passwords?

Yes, you can type passwords with the virtual keyboard. This is actually a security advantage because it can help avoid keyloggers that record physical keystrokes. However, be aware that screen recording software could capture your clicks, so it is not completely secure.

Is the virtual keyboard the same as the keyboard viewer?

No. The keyboard viewer (accessed via the input menu) shows the current keyboard layout and is used for typing in other languages. The Accessibility Keyboard is a full on-screen keyboard that you can type with. They are separate features.

How do I turn off the virtual keyboard?

To turn it off, go back to the same settings where you enabled it and toggle off Accessibility Keyboard. You can also click the close button on the keyboard window, but that only hides it temporarily; it will reappear if you click the menu bar icon.