Verifying Input Sources
The first step is to check which keyboard layout macOS is currently using for text input. Apple’s operating systems allow multiple layouts to be installed simultaneously, and switching between them can happen accidentally via keyboard shortcuts or automatic detection. If the system is set to "U.S." or "British" while you have a German ISO layout, the number keys will behave incorrectly because the physical positions do not align with the software expectations. Navigate to System Settings (or System Preferences on older versions) and select Keyboard. Look for the Input Sources section. Click the Edit... button if available, or simply look at the list of installed sources. You should see entries like "German - ISO" or "German - Mac". If you see "U.S.", "ABC", or any other variant, this is likely the culprit. Remove non-German layouts by selecting them and clicking the minus (-) button, or ensure that only the correct German layout remains active. It is also worth noting that some users may have both "German" and "German - ISO" installed. The standard German keyboard used in most of Europe uses the ISO layout, which has an extra key next to the left Shift. If your physical keyboard has this larger return key, you must select the ISO version. Using the wrong variant within the same language family can still cause minor mapping errors, though less severe than using a foreign language entirely.Checking Keyboard Shortcuts
Another common cause for this specific symptom is the activation of modifier key combinations that change how keys are interpreted. On a German keyboard, certain combinations might trigger alternative character sets. Check your Keyboard preferences under the Shortcuts tab. Specifically, look at the Input Sources subsection. Ensure that no shortcut is assigned to switch to a U.S. layout inadvertently. If you frequently switch between languages, you might have a hotkey likeControl + Space or Option + Command + G assigned to toggle inputs. Accidental presses during typing can shift the layout mid-session. Test this by pressing the known shortcut intentionally to see if the menu bar icon changes from the flag symbol (e.g., 🇩🇪) to another flag or letter code. If it does, you have switched layouts. Switch back to the German flag icon to restore proper number functionality.
For more advanced navigation within menus and dialogs, you can use the Tab key to move focus. Understanding these shortcuts helps in troubleshooting without relying solely on the mouse. You can read more about navigating interface elements efficiently in our guide on Using Tab to select dialog buttons.
Hardware Diagnostics and Resetting SMC
If the software settings are confirmed to be correct but the issue persists, there may be a deeper firmware or hardware glitch. The System Management Controller (SMC) handles low-level functions including keyboard power states. Resetting the SMC can clear corrupted state data that might be causing erratic input behavior. To reset the SMC on a MacBook Air with Apple Silicon:- Shut down the Mac completely.
- Wait 30 seconds.
- Press and hold the power button for 10 seconds, then release.
- Wait another 5 seconds, then press the power button again to start up.
Shift + Control + Option on the left side of the keyboard along with the power button for 10 seconds. After resetting, test the number keys again. If they work, the issue was a temporary controller glitch. If not, proceed to check for physical debris.
Physical Inspection and Cleaning
Dust or crumbs under the keys can sometimes prevent proper electrical contact, leading to missed keystrokes. While it is rare for all numbers except zero to fail due to dirt, it is possible if the underlying matrix is compromised. Use compressed air to blow out the keyboard area. Hold the can upright and spray short bursts between the keys. Do not tilt the can, as liquid propellant can damage internal components. Additionally, check if the Num Lock equivalent is active. Unlike Windows PCs, MacBooks do not have a dedicated Num Lock key, but some external keyboards do. If you are using an external USB or Bluetooth keyboard, ensure its firmware is up to date and that it is not sending conflicting signals. Disconnect external peripherals to see if the built-in keyboard starts working correctly. Understanding how macOS handles different layouts is crucial when troubleshooting. Our article on MacOS Uses Different Layout for Shortcuts explains why certain commands might fail when the input source is misaligned.Frequently Asked Questions
Why does my zero key work but others don't?
This often happens because the zero key shares a similar position or function across many European layouts, whereas other numbers map to distinct symbols like @ or # in US layouts. The discrepancy highlights a partial mismatch rather than a complete failure of the input driver.
How do I add a German keyboard layout?
Go to System Settings > Keyboard > Input Sources, click the plus (+) button, and search for "German". Select "German - ISO" for standard laptops or "German - DIN" if available. This ensures the OS knows exactly which physical switches correspond to which characters.
Can a virus cause keyboard mapping issues?
Malware is extremely unlikely to change keyboard mappings on macOS. These issues are almost exclusively related to configuration settings, driver conflicts, or hardware faults. Focus your troubleshooting on system preferences before considering security threats.
What if I accidentally switched to a British layout?
A British layout places the hash (#) where the German pound sign (£) is, and moves other symbols around. Switching back to German via the menu bar flag icon or the keyboard shortcut will instantly restore the correct number keys.
Does updating macOS fix keyboard issues?
While updates rarely fix hardware-specific mapping errors, they can resolve bugs related to input drivers or Bluetooth connectivity. If you recently upgraded and noticed this problem, check the release notes for any mentioned fixes regarding peripheral support.