18

Installed Windows 7 via Bootcamp for some work-related projects. I've also installed the Apple Bootcamp drivers from the OS X install disk and updated to the latest version. It mapped all my keys just fine, but I was surprised it does not offer an option to switch the mappings of Alt and Windows keys; ie. Alt is left of Spacebar, Windows key is left of Alt.

The current way directly maps to the physical keyboard layout, but not to the way people are used to working: e.g. OS X's Command+Tab for window switching is equivelant to Alt+Tab not Windows+Tab. I keep hitting the wrong keys because of muscle memory. :)

Is there a built-in way to remap Windows and Alt keys? If not, what 3rd party app is the best way to do this?

1
  • This seems like a Windows question - maybe it should be migrated to Super User?
    – Cajunluke
    Jan 10, 2011 at 18:12

5 Answers 5

13

I had this issue. Resolved it using Sharp Keys (free).

3
  • Didn't work for me (Windows 7 64bit)
    – cement
    Jan 17, 2012 at 4:44
  • Also did not work for me on W7 64 bit. Alt is not available to be remapped.
    – David
    Mar 15, 2016 at 22:09
  • 1
    It works for me with Windows 10 64bit, make sure you have to logoff and login again after applying the configuration (Sharp Keys has told you to logoff! ) Besides, for the Alt button, although it is not detected by the "Type Key", you can still select if manually from the menu, I am swapping Alt and Command button and it works on my MBA 2012.
    – Bilo
    Apr 5, 2016 at 8:51
10

I've been using AutoHotKey for about a year on Win7 Ultimate x64. Works great.

In addition to swapping the left Command and Option keys, I've remapped the right Command to forward delete, and right Option to "AppsKey" (aka, context menu) which helps in Visual Studio and other apps.

If you want function keys to work as, well, function keys (without having to hold down Fn), you can set that in the Bootcamp application via the system tray icon.

Here's a script just for swapping left Option (alt) and Command (Windows):

RAlt::AppsKey ; right-Option to context menu
RWin::Del ; right command to forward delete
LWin::LAlt ; left command to alt
LAlt::LWin ; left alt to command (windows key)

You may also consider remapping Caps Lock if you need an additional key since, really, how often do any of us use Caps Lock?

4
  • Nice, especially since I already use AutoHotkey for a lot of other stuff, but bothersome because I switch between a "real" Windows keyboard and my Apple keyboard.
    – Jan
    Jan 29, 2014 at 14:22
  • @Jan I feel your pain. Having to start and stop AutoHotkey when docking is annoying. At least there's the system try icon.
    – 3Dave
    Jan 29, 2014 at 15:46
  • No, I mean I have a general AutoHotkey script that I'd have to have two versions of, or figure out if there's some identifier that AutoHotkey can use for an 'if' section. Gotta love AHK though.
    – Jan
    Jan 29, 2014 at 19:22
  • @Jan Ahhh... that makes more sense.
    – 3Dave
    Jan 29, 2014 at 19:25
2

Here is a script file for the Apple keyboard with F hotkeys and CMD hotkeys too. https://github.com/stroebjo/autohotkey-windows-mac-keyboard

2

I didn't like Sharp Keys because it requires a restart to swap mappings. Other AutoHotKey scripts here had too much extra stuff for my needs. This AutoHotKey script is only the win key swap, plus a hotkey to turn it off (ctrl+F6) if you also occasionally use a Windows keyboard.

1

I would like to share a trick that you can remap some less used keys to keys you prefer. E.g. I map right CMD to DEL and right ALT to menu('application'), using Sharpkeys

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .