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)

And what if <alt> and <shift> have been remapped? ;)
– DavidPostill♦Apr 4 '16 at 13:32

3

Another way to get to the on-screen keyboard is to press the Windows logo key+U... if you can figure out where those are. That will bring up the Ease of Access "Utility" menu with a link to the keyboard.
– GuitarPickerApr 4 '16 at 14:03

2

Yep, the left alt is mapped to U and the right one is mapped to shift itself I think. Anyway, I tried sharpkeys and started mapping keys to the right ones.
– Google ServicesApr 4 '16 at 15:23

2

@GoogleServices You can use a virtual keyboard while your physical one is being fixed. That way you'll type with your mouse and wont have any keyboard issues.
– David says Reinstate MonicaApr 4 '16 at 19:57

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.