How to remap special keys on my keyboard

Okay I found it!

Here(archived), is all what you can find about key remapping. Keytweak(archived) work fine for me, is a free keyboard remapper for Windows NT/2000/XP/Vista/Win 7. It makes use of Microsoft's Scancode Map registry key to remap your keyboard.

alt text

This thing lets you remap one of your Internet / Email or Search keys to a sleep key !

It may not work for your keyboard model, make sure you have the latest driver.


I don't know a way to remap an existing key such as the shortcut ones - however you can do the following :

Open up notepad or any text editor and write :

%windir%\system32\rundll32 powrprof.dll,SetSuspendState

Save this anywhere (can be in any folder) as anything you like as long as it has an extension of .cmd or .bat

Next, make a shortcut to this script from anywhere and right click it. Set up a shortcut key - can be anything, but try not to use something that another application does - using a combination (2 or more) of Ctrl+Alt+Shift along with another key.

Now, whenenver you type this combination, you should go in to suspend.

alt text


If you're willing to put a little time into it, you may be able to pull it off with AutoHotkey. See How to catch special application keys?

Once you have the proper code for your key, I think you would put something like this in the AHK file:

[keycode]::Run %windir%\system32\rundll32 powrprof.dll,SetSuspendState

To build on Wil's answer, that is.