John Lam 1997 — 2026

Configuring Parallels for Windows XP

I drive my computer using my keyboard. The major disadvantage of Macs to me is that they are missing 4 critical keys: Page Up/Down, Start and End. This makes navigating around when I’m running Windows under Parallels a royal pain.

What’s worse though is the default behavior of how Parallel’s keyboard driver maps the Mac Command keys to Windows; they’re mapped to the Windows key by default. Now, the position of the Command key is identical to where the ALT key is in most Windows keyboards so this was a major source of pain. A secondary source of pain is the fact that there is no Delete key as well, but there is a superflous Enter key where the Delete key normally lives on a Windows keyboard. Here’s a magic registry hack that I cooked up this morning that will solve this problem. Just paste this code into a .reg file and run:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,53,e0,1c,e0,38,00,5b,e0,\
  00,00,00,00

This will map the Command keys back to the ALT key, and the Enter key to the Delete key. Now I can undo the DoubleCommands hack that I blogged about yesterday. Which means that my Mac feels more Mac-like and my Windows feels more Windows-like. Now if only I could hack those missing keys into the keyboard …

17 archived reader comments

Peter Krantz (2006-04-24)

Whoa! I got a MPB a couple of weeks ago and have been struggling with the same issues. This will help a lot. Thank you.

I still wonder why Apple don’t provide a delete key. There is plenty of space on the MPB to fit on in. Having spent a couple of years getting accustomed to rapid editing of code with a delete key makes me feel somewhat frustrated. I guess it will take some time to unlearn.

(Note to all mac fanatics who claim that there is a delete key by pressing fn-backspace: It is not the same thing!)

John Lam (2006-04-24)

I’m glad it helped. I’m hoping that the Parallels keyboard driver will be configurable to fix these kinds of issues. But overall, I’m very happy about how well I’ve adapted to running Windows on a Mac keyboard. I’ve had to remap a number of default keys for other applications that I use as well, so my Mac host is definitely customized with respect to keyboard layouts as well.

Of course the real answer would be to add a few more keys to the MacBook Pro keyboard, but that won’t help me until I upgrade again in a couple of years :(

Jack (2006-04-30)

Great work. I would prefer to map the other Enter key (one in the same row as the space bar) to Delete key. Any idea what its existing scancode is? It cannot be the same as the Enter key which you have mapped to Delete - otherwise you would have been left with two Delete keys and no Enter!

John Lam (2006-04-30)

Jack - the registry hack does map the Enter key that’s on the same row as the space bar to Delete. I’m not crazy enough to map the real enter key to delete! :)

Jack (2006-04-30)

You may have misunderstood my post. I was asking if you knew the scancode for the other enter key. My other comment was just me thinking aloud; I was not suggesting that you are crazy.

By the way the scancode for the two Enter keys are E01C and 001C.

Matt Baron (2006-05-09)

My apple keyboard has dedicated home, end, page up, and page down keys that work fine under parallels. On my macbook pro, I can press function (fn) plus any of the directional keys to achieve the same effect. This also works fine under parallels.

My apple keyboard also has a dedicated delete key which can be achieved on the macbook pro keyboard by pressing fn+delete.

Am I missing something?

Matt Baron (2006-05-10)

As an aside…

My old titanium Powerbook used to note the function shortcuts on the keys. I’m not sure why they decided to leave the notes off of the MBP and aluminum PBs, but I suspect it has something to do with the backlit keyboard.

Matt

Sam Yates (2006-06-17)

Uh, the MBP does actually have the page up/down and home/end labels on the keyboard.

The Enter key hack is definitely a logical one given it’s extraneous nature.

jeff (2006-06-22)

i tried the reg hack but it won’t import. it says something about “the file is not a registry file, you can only import binary files from within the registry editor.” so i did that, then it says my file (fix.reg, which IS a reg file according to windows) is not a registry file.

any idea what i am doing wrong?

Erki Esken (2006-07-09)

The easiest way to remap keys under Windows is SharpKeys utility (http://www.randyrants.com/2006/07/sharpkeys_211.html). Just run, add new mapping, type a key and what it should map to and save. Done.

Benoit (2006-07-10)

The reg file needs a header line to work. The following syntax is correct :

Windows Registry Editor Version 5.00

[HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] “Scancode Map”=hex:00,00,00,00,00,00,00,00,03,00,00,00,53,e0,1c,e0,38,00,5b,e0,00,00,00,00

kungfumaniac (2006-08-31)

Scroll lock! I desperately need scroll lock!

Tony Li (2006-11-09)

Tried this with build 1970 of Parallels. It doesn’t work - anyone else have this problem?

Andrew Hinton (2006-11-26)

I’m trying to register Aaron online and can’t get my keyboard to find an @ so I can put in my email address. Windows XP on an Intel MacBook.

Mike Creighton (2006-11-26)

I’m not sure if you guys have run across this application called KeyTweak ( http://webpages.charter.net/krumsick/ ) which gives you a GUI for mapping the various keys of the keyboard to alternative keys. It does this by creating registry tweaks for you and allows you to save / restore remappings.

This worked like a charm where the manual registry tweak didn’t seem to take effect on the latest version of Parallels.

Chuck Esterbrook (2007-02-23)

I have a MacBook Pro and cannot use Home/End under Parallels, either 1970 or the newer 3170. If I press fn-left (which acts like “home” in Mac apps), I just get “left”, and likewise for fn-right. If I hook up a PC keyboard and press the Home and End dedicated keys, I also get Left and Right behavior instead of Home and End! But they work fine in Mac apps.

The Ctrl+Home and Ctrl+End combos work as expected.

It’s killing me. I’ve been troubleshooting for hours with no results. I contacted Parallels tech support and also posted to their forums with no response.

Any ideas?

Mark (2007-04-15)

Setting up a clients MacBook Pro and couldn’t for the life of me figure out how to invoke ctrl alt del. Your article, and the responses to it helped me in my moment of need.

Cheers