Ritesh’s Technical Blog

How to map – remap keyboard buttons?

Posted on: February 23, 2009

How to map – remap keyboard buttons?

How about disabling DELETE key or the most often used SPACEBAR?

Sometimes before, I came to know how to remap keyboard, which would allow me to disable & interchange keys, without having to use any software, neither any special keyboard driver etc. I must tell you that this tutorial is making use of regedit it means if you don’t know anything about regedit than first read the article Understanding/Backup & Restoring Regedit.

In Windows operating systems, PS/2-compatible scan codes provided by an input device (Keyboard, Joystick, Mouse etc) are converted into virtual keys, which are transferred through the system in the form of Windows messages. Windows 2000 and Windows XP include a new Scan Code Mapper, which provides a method that allows for mapping of scan codes. The scan code mappings for Windows are stored in the following registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout

NOTE: There is also a Keyboard Layouts key under the Control key, you should not mess up with that key.

To make you understand the concept I will first start from the basic that is disabling key, once you understand the concept you can disable any key or even interchange any key with another. Here I am disabling DELETE key.

Disable CAPS LOCK key

Open Regedit and go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout.

Be careful not to edit the “Keyboard Layouts” key. If you want the remapping to apply on a user-specific basis, log in as that user (you need to be an administrator in XP Home or have registry editing privileges, usually a power user or administrator, in XP Pro) and use HKEY_CURRENT_USER\Keyboard Layout.

In right-side pane create or modify Binary Value, name it Scancode Map. The content of the key will depend on what kind of mapping – remapping you wants.

read complete here

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Blog Stats

  • 55,255 hits
%d bloggers like this: