Keyboard Typing the Wrong Letters
Start with a few repeatable examples: which key you pressed, which character appeared, and where it happened. A layout mismatch, an active number layer, an input method, and an intermittent key fault need different checks. This guide helps you narrow the cause before changing hardware.
Open Keyboard TesterMatch the symptom to a useful first check
Use a blank document or a plain text field and harmless sample text. Repeat the same short sequence in a second application. Record the selected input source and any keyboard profile so you can compare one change at a time.
- A and Q, or Y and Z, appear swapped consistently: compare the active layout with the legends on your keycaps. QWERTY, AZERTY and QWERTZ assign different letters to some of the same positions.
- A group of letter keys produces numbers: look for small number legends and check the keyboard's embedded numeric keypad or Num Lock state.
- Quotes, @, punctuation or accented letters differ: check the exact layout variant and active input method, including international or dead-key layouts.
- Characters change only in one app, game or remote session: check that context's input source, shortcuts, text replacement and remapping before changing the whole system.
- A key is missing, repeats unexpectedly or fails intermittently across apps: collect a separate event test and compare another keyboard or connection. That pattern needs more than a layout change.
Compare the key event with the text you receive
Open the keyboard tester and start its capture area. Press the suspect key alone, release it, then repeat slowly. Read the displayed event key and code alongside the highlighted position. Stop capture before using normal browser shortcuts or changing system settings.
The browser's code describes a key position using identifiers such as KeyQ. Its key value reflects the active layout and modifiers. On an AZERTY layout, a key reported as code KeyQ can produce key a. That combination alone does not show a broken switch. MDN documents this distinction in the sources below.
An input method can compose or replace text after several key events. Compare its final text in a normal editor too; a key history is not a transcript of the committed text. A missing browser event also cannot identify whether the cause is hardware, focus, an operating-system shortcut or software interception.
Choosing ANSI or ISO changes the tester's physical diagram. Choosing a website language changes its interface. Neither changes your operating system's input layout. Select the diagram that resembles your hardware and change the input source in the system when the character mapping is wrong.
Check the active layout in Windows
Microsoft documents input layouts separately from the Windows display language. You can keep the interface language you prefer while selecting the layout that matches your keyboard.
- Select the input-language indicator in the taskbar and choose the intended keyboard layout. Windows + Space also cycles through installed layouts.
- If the layout is missing, open Settings → Time & language → Language & region. Open the relevant language's menu, choose Language options, and inspect Installed keyboards. Add the specific layout you need.
- Return to your plain text sample and repeat the same keys. Check punctuation as well as letters; two layouts can share most letters while assigning symbols differently.
- After confirming the replacement works, remove an unwanted layout from that language's options if you no longer use it. Keep any layouts required by other users or tasks.
These steps follow Microsoft's current Windows 11 guidance. Labels can differ by version. Check the selected input source in the affected application or remote session again if the problem returns when you switch contexts.
Check the input source and Keyboard Viewer on Mac
- Open Apple menu → System Settings → Keyboard. Under Text Input, choose Edit and inspect your input sources.
- Select the source that matches the characters you intend to type and inspect its layout preview.
- Enable Show Input menu in menu bar if needed, then use that menu to select the intended source and open Show Keyboard Viewer.
- Compare the viewer with a short sample in a text editor; Shift and Option reveal alternate characters. If the viewer shows the expected character but one application inserts something else, check that app's replacements, shortcuts or input settings.
Apple's Input Sources settings and Keyboard Viewer pages explain these controls. A physical diagram and a software input source describe different parts of the setup; an ISO-shaped keyboard can still be used with several language layouts.
Check Num Lock, modifiers and keyboard profiles
Some compact laptops reuse letter positions as a numeric keypad. Samsung's support guidance identifies Num Lock as a cause of letters turning into numbers on such models. Look for the keyboard's Num Lock marking and follow the model manual; some keyboards require Fn with that marked key. There is no universal Fn shortcut for every laptop.
If symbols or capitals appear unexpectedly, release both Shift keys, check Caps Lock, and inspect any modifier remapping or accessibility setting you intentionally use. On a programmable keyboard, compare the active layer or profile with the expected one. Save or note your configuration before changing it.
Retest the same sample after each change. If only the numeric keypad changes behavior, that may be the normal Num Lock function rather than an embedded letter-key layer.
Separate composition, text replacement and remapping
When an input method is active, allow the composition to finish before judging the result. An accent key or a sequence used to build one character need not insert a standalone character at every step. If you intend plain Latin text, temporarily choose the matching direct-input source and repeat the sample.
Compare a local editor with the affected browser field. If only one field differs, inspect that app's text replacement, extensions, game bindings or remote-desktop mapping. Temporarily pause a relevant remapping profile only if you know how to restore it; record whether the symptom follows that change.
If the mismatch follows one keyboard across applications, compare another keyboard on the same system. If possible, try the affected keyboard on a second system with the same intended layout. These comparisons help isolate a device, profile or system-specific pattern; no single browser result proves the hardware is healthy or faulty.
Retest and keep a useful record
Keep a short before-and-after note: physical key legend, browser key/code when available, committed character, active input source, keyboard model and affected app. Include whether the behavior was consistent or intermittent. This is more useful for support than a claim that the keyboard is simply wrong.
- If the mapping now matches, repeat letters, numbers and punctuation in both applications.
- If presses are absent rather than mapped to the wrong character, follow the unresponsive-key checklist.
- If one press appears to produce repeated inputs, use the key chatter tool to review event timing, then compare the same behavior in another app. It cannot certify switch damage.
- If the same problem persists across known-good settings and another system, share the recorded examples with the manufacturer or repair service.
Compare the key position and reported value
Test a few suspect keys, then compare their events with the final text in your normal editor.
Open Keyboard TesterFrequently Asked Questions
Why do A and Q or Y and Z swap?
A consistent swap can come from a different active layout, such as AZERTY or QWERTZ. Compare the system's selected layout with your keycaps and repeat the same sample before assuming a hardware fault.
Why do letters become numbers on a laptop?
On models with an embedded numeric keypad, Num Lock can change a group of letter keys into number keys. Check the marked key and the model's manual; the shortcut varies between keyboards.
Does selecting ANSI or ISO fix the typed characters?
No. That choice changes the physical diagram shown by the tester. Your operating system's input source, input method and any remapping determine the characters received by an application.
The tester shows KeyQ but I typed A. Is that a fault?
Not necessarily. KeyQ is a browser code for a position, while the key value can be a under an AZERTY layout. Check the active layout and final text output together.
Can a browser test prove the keyboard is working perfectly?
It can show events that reached that page under the current setup. It cannot rule out intermittent hardware faults, operating-system interception, application remapping or input-method behavior. Compare settings and another app or device when the symptom persists.
Sources and further reading
Related guides
All guidesHow to Test Your Keyboard: A Complete Step-by-Step Guide
Learn to test every keyboard key in your browser, read key codes, spot dead or chattering keys, and decide if a keyboard needs cleaning or replacing.
How to Fix Unresponsive Keyboard Keys
A practical troubleshooting guide for dead or intermittent keyboard keys — from software checks and cleaning to switch replacement — fix the real cause.
How to Fix Keyboard Chatter: Keys That Type Twice
Keys typing twice from one press? Confirm chatter with a test, rule out settings, clean the switch, raise debounce in QMK or VIA, or replace the switch.