How to Change and Check the Keyboard Layout in Windows
In Windows 11 two different shortcuts change your keyboard layout, and only one of them is meant to be pressed on purpose. Windows plus Space cycles through the layouts you have installed and shows a small panel while it does so. Left Alt plus Shift does much the same thing silently, which is why a keyboard that suddenly prints the wrong characters is usually a switched layout rather than a broken board.
Which layout is active right now?
Once a second layout is installed, Windows puts an indicator in the taskbar next to the clock, showing a short code such as ENG or DEU. That indicator is the fastest diagnosis available, because it tells you which layout is active in the window you are typing in right now.
The catch is that the setting can be per window. Windows has an option called let me set a different input method for each app window, and when it is on, your browser and your text editor can sit on different layouts at the same time. A problem that follows one application and not another is almost always this setting.
How do you add, remove and reorder layouts?
Layouts live under Settings, then Time and language, then Language and region. Each installed language has a menu with Language options, and inside it a Keyboards section where you add or remove a layout. A language can hold several: English can carry both the plain United States layout and United States International at once, which is how most people end up cycling between two arrangements they did not knowingly install.
Removing what you do not use is the permanent fix. If only one layout remains, Windows plus Space has nothing to cycle to, the taskbar indicator disappears, and the accidental switch stops being possible.
The two hotkeys themselves live in a different place, under Advanced keyboard settings, behind a link named input language hot keys. The dialog that opens is the old Text Services panel, and it lets you set the switch between input languages to none. Left Alt plus Shift sits a thumb’s width from the combinations people use all day, so turning it off is a reasonable choice.
Why are wrong characters almost never a hardware fault?
A keyboard sends the position of the key that moved. The character is decided afterwards by the active layout, which is why the same physical key can produce three different symbols on three machines. Two properties describe this split precisely: KeyboardEvent.code names the physical position, and KeyboardEvent.key names the character the layout produced.
Our keyboard test shows both for every keypress. If you press the key to the right of L and the position reports correctly while the character is wrong, the layout is wrong and the hardware is fine. If the position itself never arrives, the switch or the cable is the suspect.
| Symptom | What is actually active | Fix |
|---|---|---|
| Double quote and at sign trade places, hash gives a pound sign | a United Kingdom layout against a United States one | switch layout, or remove the one you do not use |
| Y and Z swap and the right hand punctuation moves | German QWERTZ, covered in ISO against ANSI | switch layout |
| An accent key prints nothing until you press a second key | a dead key working correctly, as on US International | nothing is wrong; press space to get the accent alone |
| The problem follows one application and not another | per window input method is switched on | turn off the per window option in Settings |
| The numeric keypad sends arrows instead of digits | Num Lock is off | press Num Lock; this is not a layout issue at all |
How do you confirm a layout before trusting it?
After a change, type a line that reaches beyond the letters. Digits, an apostrophe, a period, a comma, a question mark and the key next to Enter cover most of the positions that move between national arrangements. The letters agree across almost all Latin layouts, so testing with letters alone proves very little.
If you are moving between arrangements that differ by only a few keys, the keyboard test shows the physical position of every key next to the character it produces, which is a quick way to identify what a colleague’s machine was actually set to. The historical reason these variants differ by so little is in why the QWERTY layout exists.
For an unhurried check, start with Lewis Carroll’s opening of Alice in Wonderland, published in 1865, where a bored child on a riverbank refuses to read her sister’s book. Its vocabulary is plain, but those 302 characters turn on a colon, close on a question mark and carry a pair of quotation marks, and all of those sit on keys that move between national layouts. Digits move too, so follow it with the list of old English standards from the Encyclopaedia Britannica of 1911, 315 characters with a year in brackets after almost every entry, or with Gilbert White’s description of his Hampshire parish from 1789, whose 393 characters carry distances and a latitude among the place names. If they come out clean, your layout and your hands agree. All three are waiting in the typing test, each with its author, year and source on its own page.
What to do first, and what to change permanently
Check first, before touching any setting: read the language indicator in the taskbar next to the clock. It names the layout active in the window you are typing in right now, and it settles most cases in a second.
Change permanently by removing layouts you never chose. If only one remains, Windows plus Space has nothing to cycle to, the indicator disappears, and the accidental switch becomes impossible. The second permanent fix is the hotkey itself: under Advanced keyboard settings, behind the link named input language hot keys, the old Text Services panel lets you set the switch between input languages to none.
Where to start if the indicator looks right and the characters are still wrong: press the key and compare its physical position against the character that arrives. Our keyboard test shows both. Position correct and character wrong means the layout; no position at all means the switch or the cable.
When changing the layout will not help
- When the numeric keypad sends arrows. That is Num Lock, and it toggles independently of every layout setting.
- When a key produces nothing on its first press. Dead keys are built to wait for a second key, and a layout change removes the behavior rather than fixing anything.
- When the position itself never arrives in the test. No layout assigns a character to a key that is not reporting; that is hardware.
- When you are testing with letters only. Letters agree across almost all Latin layouts, so a line of prose can look perfect while every symbol you need is somewhere else. Type digits, an apostrophe, a comma, a period, a question mark and the key next to Enter.
FAQ
How do I change the keyboard layout in Windows 11?
Windows plus Space cycles through the layouts you have installed and shows a small panel while it does. To add or remove one, go to Settings, then Time and language, then Language and region, open Language options for the language you want and use the Keyboards section.
Why did my keyboard layout change by itself?
Almost certainly left Alt plus Shift, which switches layouts silently and sits a thumb’s width from combinations people use all day. You can disable it under Advanced keyboard settings, behind the link named input language hot keys, by setting the switch between input languages to none.
Why does only one program type the wrong characters?
Because Windows has an option called let me set a different input method for each app window. With it on, your browser and your text editor can sit on different layouts at the same time. A problem that follows one application and not another is nearly always this setting.
How do I tell a wrong layout from a broken keyboard?
A keyboard sends the position of the key that moved; the character is decided afterwards by the active layout. KeyboardEvent.code names the position and KeyboardEvent.key names the character, and the keyboard test shows both for every press. Correct position with the wrong character means the layout. No position at all means the hardware.
Which characters should I type to confirm a layout?
The ones that move between national arrangements: digits, an apostrophe, a comma, a period, a question mark, and the key immediately to the left of Enter. Letters prove very little, because they agree across almost every Latin layout.


