46

My friend/enemy switched the keys on my keyboard as an April fool's joke. When I press Y, Z appears on the screen. Some keys work like b, x, g, i, d, and a few more. Also, when I press ctrl, it returns Enter. Even the function keys are switched!!

I called a technician and even he wasn't able to detect the issue and told me installing the operating system was the only go. I really don't want to call up my friend and ask him.

I'm on Windows 7 Professional 64-bit and there is no problem with my mouse. (Thank God)

Can you help me?

Braiam
  • 4,777

3 Answers3

60

For the simple case, it sounds like you have a different keyboard layout (e.g German, as that swaps Y and Z).

Change layouts in Control Panel:

  1. "Clock, Language, and Region"
  2. "Region and Language "
  3. "Keyboards and Languages" tab, -> "Change keyboards"

Press Alt-Shift to switch layouts.

However this does not explain function keys. It's possible to arbitrarily remap keys using the registry. I think you'll need a 3rd party tool to fix this. Example: https://sharpkeys.codeplex.com/

Remember you can use the "On screen keyboard" (Start Menu\Programs\Accessories\Ease of Access\On screen keyboard) to type with the mouse.

RJFalconer
  • 10,369
44

If you don't want to use any third-party applications to reverse the SharpKeys modifications, you can cut out the middleman and edit the Registry directly.

Open the Registry Editor by navigating to C:\Windows\regedit.exe in Explorer. Once it's open, navigate here:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout

If there are entries called Scancode Map or Value Scancode Map, delete them. Those are what cause Windows to remap incoming keypresses from the keyboard.

Once you're done, reboot. Key remappings will be reset to the default. You can do all of this with the mouse only, no keyboard.

References for those IDs: Main.cs in the SharpKeys source code, "How to Disable the Insert Key in Windows" from WikiHow.

Ben N
  • 42,308
14

It's worth checking for processes running in the background which manipulate your key entry. I use AutoHotkey scripts to add/override some keybindings. They generally appear in the system tray as a little green icon with a capital 'H'.

If you can't find the process there, you can also check the 'startup' folder in your start menu to see if they have added something to run when you log on.

beirtipol
  • 253