Windows – My Ctrl and Alt keys are swapped, how can I swap them back

keyboardkeyboard shortcutswindows 7

I'm working on a company PC that was used previously by someone else. I don't find that AutoHotKey is installed on this machine.

The Ctrl and Alt keys are swapped – (when I press Ctrlit behaves like I pressed Altand vice-versa). There is no AutoHotKey installed (if you could think it causes the problem).

How can I swap the keys back in the "native way"?

Best Answer

According to ( http://www.howtogeek.com/howto/windows-vista/disable-caps-lock-key-in-windows-vista/ ) it's possible to remap keys by editing the registry. Perhaps the previous user of your computer has done so, making the two keys point to each other? To check do the following:

  1. In the start menu type "regedit", it will appear in the search results, and then run it.
  2. Navigate to "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout".
  3. Look for an entry called "Scancode Map".

If you don't see a key called "Scancode Map" then this isn't the problem. Perhaps you should check the Windows Add/Remove software section and see what else they've installed (as there are programs other than AutoHotKey out there).

Entry Present

If you do see the "Scancode Map" entry then some of your keys are being remapped.

Entry Not Present

In my test this entry was not present on a clean Windows installation, and so I would assume it's not needed for regular functions (but there could be other variables unknown).

I would not advise deleting it unless you've examined the contents, even then it's really something that IT should handle. You mentioned having support staff so I assume you are in a work environment so it's possible IT has other additional keys being remapped intentionally that you wouldn't want to delete.

Unfortunetly I don't know enough about this subject to assist you in examining the key's data to determine specifically which keys are being remapped. The previously linked article is also rather brief on the subject, and does not list the codes equating to the alt or control keys.

Related Question