DEV Community

Bryz︱🦾
Bryz︱🦾

Posted on

⌨️ Keyboard Typing the Wrong Characters? Check the Layout Before You Replace It

"My keyboard is broken. I press @ and it types a quote mark." 😩

If you work help desk, you'll get this ticket. It sounds like hardware. Almost every time, it's software: Windows quietly switched the keyboard layout. Here's how to prove it and fix it for good in a few minutes.

🔍 Step 1: Check the taskbar

Look next to the clock. You'll see a language or layout indicator like ENG US. If it says ENG UK, ENG INTL, or another language, you've found your problem.

Press Win + Space to open the layout switcher and pick the right one. Ask the user to type @, ", and # again. Fixed? Great. Now make sure it doesn't come back.

🕵️ Step 2: Find out how it happened

Windows has shortcuts that switch layouts instantly:

  • Alt + Shift switches input language
  • Ctrl + Shift switches keyboard layout within a language
  • Win + Space cycles layouts

Users hit these by accident all the time, especially while typing fast. If there are two layouts installed, one slip and every symbol moves.

🧹 Step 3: Remove the extra layout

Open Settings > Time & language > Language & region. Click the ... next to your language, choose Language options, and under Keyboards remove any layout the user doesn't need.

You can check what's installed with PowerShell:

Get-WinUserLanguageList
Enter fullscreen mode Exit fullscreen mode

Look at the InputMethodTips line for each language. More than one entry means more than one keyboard layout is installed.

To see the current default input method:

Get-WinDefaultInputMethodOverride
Enter fullscreen mode Exit fullscreen mode

⚙️ Step 4: Turn off the accidental shortcut (optional)

If the user keeps triggering it, go to Settings > Time & language > Typing > Advanced keyboard settings > Input language hot keys. Click Change Key Sequence and set the shortcuts to Not Assigned.

🧪 Step 5: Still wrong? Now test hardware

If the layout is correct and keys are still wrong or dead:

  • Test with the on-screen keyboard (osk in Run) to compare
  • Try a different USB port, or a different keyboard
  • Check for stuck keys or a Fn/Num Lock state on laptops

Only then is it time to swap hardware.

✅ The takeaway

Wrong characters usually means the wrong layout, not a broken keyboard. Check the taskbar, remove extra layouts, and you'll close this ticket in minutes. ⚡

What's the weirdest "broken hardware" ticket you've solved that turned out to be a setting? 👇

Top comments (0)