Remap keyboard with scancode map for current user only

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

 

Question Info


Last updated May 18, 2019 Views 33,323 Applies to:

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

 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.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Thank you for the reply.  However, that is what I was doing.

My question was about Windows 7.  The HKEY_CURRENT_USER setting does not work in Windows 7.

It seems to only work in Windows XP.

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Same question...

 

Can we do anything for change the KeyboardLayout in CURRENT USER. It works in local machine but doesn't work in HKUC

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

 

 

 

Hello m112 and Thauglor,

Thank you for visiting the Microsoft Answers Site.

Remapping the keyboard layout depends on the software for the keyboard. For example, the IntelliType Pro Keyboard Software for Windows allows a user to reprogram various keys on their Microsoft keyboard.  Also, the mapping stored in the registry works at the system level and applies to all users and cannot be set differently for current user.

You may also view the link below which includes additional information on the Scan Code Mappings:

Scan Code Mapper for Windows

Thank you,

 


Mary
Microsoft Answers Support Engineer
Visit our Microsoft Answers Feedback Forum and let us know what you think.
Microsoft Answers Support Engineer
Visit our Microsoft Answers Feedback Forum and let us

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Mary,

 

Thanks for your response. I understand that there may be software specific to a keyboard that may do this but I have a generic keyboard.

The interesting fact is this "current user" specific configuration of Scan Code Mappings was supported in previous versions of Windows (pre-Vista and 7).

I, in fact, am using it for my Windows XP and Windows 2003 (I believe, need to verify) systems with these mappings.  It only affects my account and leaves the rest in the default keyboard settings.

 

Can you please verify if this support was removed or if this is a bug?

 

Thanks,

jbum112

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Did anyone ever find an answer to this question?

I hit the same problem; the solution that used to work for the current user under XP no longer work under Windows 7.

Is this generally true for Windows 7, or is it an artifact of my particular set-up?

 

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

I'm still seeking an answer.  It was really handy to be able to edit the registry and only remap the keys for my user.  Now my entire family has to deal with my odd remappings.  Anyone have any ideas?

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hi guys, i have downloaded keytweak to my laptop, but when i try and change the keys around it says

"Could not remove scancode map from registry"

Are any of you able to help me out ?

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

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

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

Hi ThiloL,

Thank you for visiting the Microsoft Windows Community site. In an effort to focus more attention on your particular situation create a new thread here.  This will mitigate confusion caused by more than one posting about similar   topics, allowing us to focus on each customer individually.

Dena

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.