Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Say I have a Mac keyboard and want to use it on a PC. Some of the keys aren't quite right. How do I map them correctly?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

The main problems with using an Apple keyboard on a PC are as follows:

  • Media & Volume keys are nonfunctional
  • Command key where Alt key should be, but acts like Windows key
  • Option key where Windows key should be, but acts like Alt key
  • Right Control key acts like Right Alt key
  • Fn key where Insert key should be (wired keyboard only)
  • Clear key where NumLock key should be (wired keyboard only)

You can use scancode mapping to map the F7-F12 scancodes to the Windows media keyboard equivalents, turn F13-F15 into the PrintScreen, Scroll Lock, and Pause keys, and make the Ctrl and Alt keys work properly. After that you hit a wall with scancode mapping.

Instead, install uawks. Its a little program that uses AutoHotKey scripts to map your Mac keyboard keys to the PC equivalents. You can always tweak the scripts to get the exact behavior you want.

share|improve this answer

I use the following to swap the alt and command/Windows keys. Paste into a .reg file, then run it to import into your registry.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,08,00,00,00,37,e0,64,00,5b,e0,38,00,\
  38,00,5b,e0,5c,e0,38,e0,38,e0,5c,e0,47,e0,63,e0,0d,00,59,00,00,00,00,00
share|improve this answer
    
How do you remove this after its been added? –  Marc Jul 15 '13 at 23:19
    
@Marc At least on the Windows 7 machine I'm on now, the "Scancode Map" value doesn't exist by default, so simply deleting it will probably do it. Though, I suggest you export the key first just in case something goes wrong (right-click "Keyboard Layout" and choose "Export"). –  Stephen Jennings Jul 16 '13 at 0:16
    
I did that right after I typed this, simply deleting the key sorted me out! Thanks Stephen. –  Marc Jul 16 '13 at 4:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.