Mac keyboard not working: how to check missing or stuck keys

A useful keyboard check ends with a repeatable observation: which physical key, in which app, under which settings. Follow the branch that matches your symptom, compare a local text document with the browser, and change one thing before repeating the same input.

Substantively updated: Project methods & corrections

1. Establish a small test you can repeat

Open a new disposable TextEdit document and note the active input source. If you use a Latin input source, type abc 123 with short, separate taps. For another source, choose a short sequence whose expected output you know. Then test one suspect key five times, fully releasing it between taps. Record the text that actually appears; do not use a password or an important document.

  • No ordinary letters appear anywhere: follow the power and connection branch in step 3.
  • Letters appear, but the characters are wrong: follow the input-source branch in step 4.
  • One key is missing, delayed or duplicated: compare the same key in step 2, then use step 5.
  • Only a shortcut or a top-row control fails: check that specific command or the function-key guide first.

2. Compare the same physical key in two places

Activate the keyboard tester and repeat the five taps. A normal brief press usually produces a fresh keydown followed by keyup; the typed character is a separate observation. Compare the physical code and delivered key value in the event inspector. Keep the same input source and connection while switching between the browser and TextEdit.

  • TextEdit receives all five characters but the page misses them: click back into the test and retry; then compare another browser. Focus, extensions or browser handling remain possible explanations.
  • Both places miss the same physical key repeatedly: continue with settings and connection checks. This narrows the symptom but does not identify a failed switch.
  • A key remains highlighted after changing windows: release every key, refocus and reset the test. A lost keyup event can leave a visual state behind.

3. If no keys work, check the connection before individual keys

For an external keyboard, check power, charge and the connection shown in macOS. Reconnect once, then repeat abc 123. If the model supports a wired connection, compare it using a suitable cable; a cable that only charges may not provide a usable data comparison. For USB, try another available port. For a built-in keyboard with no input, connect the Mac to power and use an external keyboard if available.

  • If another keyboard works on the same Mac, record that comparison for device support.
  • If the original keyboard works on another Mac, investigate the first Mac’s connection and settings.
  • If one connection works and another does not, keep the working connection and investigate the failing path. That result alone does not establish the condition of every key.

4. If characters are wrong, compare the selected layout

Check the input menu and select the layout you intend to use. Open macOS Keyboard Viewer to compare the active character map with your keycaps. For example, a physical position can retain code KeyQ while key changes with the selected layout. A dead key may wait for the next letter, and an input method may compose several keystrokes into one character. These are different from an absent key press.

  • Repeat your original short sequence after selecting the intended input source.
  • If the result now matches, keep that source or learn its mappings; repeated hardware tests add little.
  • If Command or Option acts like another modifier, record the current modifier mapping before changing it. Use the shortcuts guide for that branch.

5. Separate delayed acceptance, held-key repeat and extra taps

Tap the suspect key ten times slowly, releasing it completely each time. Compare accepted characters with your ten deliberate taps. A long hold can trigger normal repeat or an accent menu, so it is a different test. Use the chatter tool to record extra fresh presses and the repeat tool to inspect a deliberate hold; neither produces a hardware diagnosis or a universal pass mark.

  • For Caps Lock on an Apple keyboard, press deliberately until its indicator changes. Media Eject also has an intentional activation delay. An ignored very short tap on these controls differs from missing ordinary letters.
  • If an ordinary key works only when held longer, check Accessibility → Keyboard for Slow Keys. Temporarily change it only if you can restore the setting you need.
  • If certain letter keys move the pointer or do not type, check Accessibility → Pointer Control for Mouse Keys.
  • If ten separate taps repeatedly create extra characters in more than one app, keep the exact count, key and connection in your notes and proceed to support guidance.

6. If only a combination fails, compare individual presses

First confirm that each member of the combination works alone. In the rollover tool, hold an ordinary pair such as A and S, release both, then repeat the same pair. Choose keys that have no command assigned in the app you are using. A pair that works alone but not together describes a combination-specific symptom; it does not measure USB polling or prove a particular rollover specification.

  • If an app action occurs or focus moves, test the modifiers separately and inspect that app’s shortcut assignment.
  • If the same ordinary pair is consistently incomplete, record the order pressed and compare another app or keyboard when possible.

7. Read a before-and-after record after sleep

Here is an example for an external keyboard with intermittent input. Before sleep, ten short Space taps produce ten spaces in TextEdit and ten full press–release pairs in the browser. After waking, the external keyboard produces six spaces while the built-in keyboard produces ten, with the same app and input source. Record the elapsed time after waking and check whether the external keyboard still shows as connected in Bluetooth.

  • If the issue recurs, keep the pre-sleep round as your control. Reconnect the external keyboard and repeat the same ten taps in the same app. If the behavior improves, record which connection change helped.
  • A Magic Keyboard cable can charge and pair the keyboard. Label a test as USB only if the model supports wired input and you have confirmed that USB is the input path.

8. Keep a useful record and know when to stop

Write down the keyboard model, connection, macOS and browser versions, input source, physical key, exact test sequence, expected result and observed result. Include one comparison that worked and any setting changed. Once the original sequence behaves as expected after a change, stop and keep the useful setting. If the same symptom persists across apps and basic checks, use Apple or the manufacturer’s device-specific support. Stop routine testing after liquid exposure, visible damage or a physically jammed key; do not remove keycaps using generic instructions.

Get to know your keyboard a little better.

Sources and further reading

Official documentation supporting this page’s explanations and service disclosures.

Mac keyboard test, explained.

About the test, your keyboard, and that one key that won’t light up.

More answers
Why does my keyboard work in TextEdit but not on this page?

The page may not have focus, a browser command may handle the key, or browser input handling may differ. Refocus the tester and compare the same ordinary key in another browser. A missing page event does not by itself show a hardware fault.

Why is a different character shown even though the correct key position lights up?

The physical code and the resulting character describe different things. The input source, Shift, Option, dead keys and composition can change the character. Check the active source and Keyboard Viewer before treating it as a missing key.

Does one duplicated character mean keyboard chatter?

One observation is insufficient. Repeat ten separate taps, release fully, and compare a second app. A held key’s repeat is different from extra fresh presses. Keep the record if the unexpected duplicates are reproducible.

Can this test decide whether I need a replacement keyboard?

It can document input received by the browser and help isolate a repeatable symptom. Replacement decisions require device-specific assessment; the page cannot inspect the switch, connection electronics or physical damage.

Ready to check your Mac keyboard?

A quick check. A little peace of mind.

Test your keyboard
Your keystrokes stay on your Mac.

Tested in your browser. No accounts, no keystroke uploads, no fuss.

Our privacy promise