Share via

Remap keyboard with scancode map for current user only

Anonymous
2010-04-17T21:06:38+00:00

I used to use scancode map registry key to remap my ctrl/caps lock/esc keys to my liking.  I was able to do this system wide or for a particular user only.

Starting in Windows 7 (maybe Vista too), the user only setting does not take effect.

Does anyone know if it's still possible to use this setting in hkey_current_user/keyboard layout/scancode map???

Thanks,

jbum

Windows for home | Previous Windows versions | Accessibility

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

21 answers

Sort by: Most helpful
  1. Anonymous
    2015-05-17T15:32:47+00:00

    It is true that user-level keyboard remapping is needed for different users of the same machine to have their own functionality.

    However, there is a more fundamental reason why this is needed.  With many companies cracking down on computer security, and taking local admin rights away from their IT people, it is necessary to make these changes at the user level, as you need administrative rights to change hkey_local_machine.

    Some of us need to remap the keyboard for medical reasons; for example, wrist pain from user the Ctrl key in its default location.  I don't think it's fair that a company should restrict users from using the computer the way they need to to maintain their health.  The "you can't qualify for this job if you don't type like everybody else" is not an excuse.  It's like denying wheel chair access to buildings and saying you don't qualify if you're crippled!

    Was this answer helpful?

    3 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2015-05-17T15:22:53+00:00

    Dear Sir,

    I think people are interested in user-level keyboard mapping because of administrative rights.  You don't need them to do it for your own user account.

    With companies getting stricter about computer privileges, and more and more of them taking away local admin rights from their IT people, it becomes necessary to do keyboard remapping at a level that doesn't require them.

    I need to remap my CAPS LOCK key to Control because I use it a lot, and I get wrist pain if I can't map my keyboard that way.  Some companies may not allow users to edit system-level registry keys, particularly if you do government contracting.

    So, can someone please tell me why Microsoft removed user-level keyboard remapping in Windows 7, if they plan to put it back, and if there is an alternative way to achieve it?

    Thanks.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2010-04-19T17:32:17+00:00

    **** Hello jbum112,

    To restore the keyboard, run regedit.exe and delete the "Scancode Map" entry from HKEY_CURRENT_USER (and log off/on), or from HKEY_LOCAL_MACHINE (and reboot), depending on which section of the registry you changed.

    edit Use the Caps Lock key as Ctrl. Particularly while touch typing, it can be useful to remap the keyboard so that pressing CapsLock is the same as pressing Ctrl.

    This change makes it easy to press Ctrl-[ as an alternative to pressing Esc.

    The following applies to the current user (log off and log on to apply). Alternatively, an administrator can apply the change to all users (reboot to apply) by replacing

     [HKEY_CURRENT_USER\Keyboard Layout] with

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]

    Map CapsLock to LeftCtrl (press CapsLock to generate LeftCtrl):

    REGEDIT4

    [HKEY_CURRENT_USER\Keyboard Layout]

    "Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

    An alternative would be to replace the "Scancode Map" line with the following to swap CapsLock and LeftCtrl:

    "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,1d,00,1d,00,3a,00,00,00,00,00

    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up annd restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:

    322756 (http://support.microsoft.com/kb/322756  ) How to back up and restore the registry in Windows.

    Hope this helps.

    Regards, Manasa P – Microsoft Support.

    Was this answer helpful?

    2 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2013-01-16T04:28:44+00:00

    Hi Microsoft,

    How can I remap more than one Scancode to registry? As I want to Disable all CTRL ,ALT and Windows Key. How can I do it? I can try the following but wouldn't work:

    [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Keyboard Layout]

    "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,1D,E0,00,00,38,E0,00,00,00,00 ;Disable Right CTRL key and ALT key

    "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,1D,00,00,00,38,00,00,00,00,00 ;Disable Left CTRL key and ALT key

    "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5B,E0,00,00,5C,E0,00,00,00,00 ;Disable Windows Key

    It only read the third scancode map. So the Windows Key is disabled and CTRL ,ALT Keys still functional. How can I disable all CTRL ,ALT and Windows Key on the keyboard?

    Many Thanks!

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  5. Anonymous
    2012-08-24T09:36:31+00:00

    Yes. HKCU seems not to work under Win 7. Isn't it?

    Per-user keyboard mapping was introduced in XP but never documented. It survived through Vista but Windows 7 removed it, and it hasn't returned in Windows 8 (at least not in the preview edition).

    Per-user mapping was very useful for two reasons:

    1. Sometimes more than one user account uses the same computer!
    2. You didn't have to be an admin to change your own settings.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments