How to get external Apple keyboard to accept modifier key input from Macbook's internal keyboard (and vice-versa)?

I just bought an older Apple keyboard, with the idea that I could use it in conjunction with my internal Macbook Pro keyboard as a substitute for buying a keyboard that's capable of splitting into two pieces. The idea is that I should be able to put my right hand on the external keyboard and my left hand on the internal keyboard and type as usual.

I plug the external keyboard in and I can type just fine. The problem comes when I try to use any sort of key combination with both keyboards at the same time. For example, when I hit the control key on the internal keyboard and the 'e' key on the external keyboard, I would like for the cursor to move to the end of the line but, instead, a lower-case 'e' shows up onscreen. When I hold the shift key on the external keyboard and hit the 'a' key on the internal keyboard, rather than seeing an upper-case 'A' appear, I get a lower-case 'a'.

I rely heavily on keyboard shortcuts, macros, and emacs, but besides that, it doesn't make much sense for me to type with using both keyboards if I have to move both hands to one keyboard whenever I want to use an emacs key binding or type a capital letter.

Is there a way to make one keyboard accept modifier key input from the other? Ideally, I should be able to hold a modifier key on either keyboard and type another character from either and have OSX recognize a keystroke combination.

Keyboard: A1048 (not a new one) Macbook Pro: MacBookPro8,2; 15-inch; Late 2011; Mavericks 10.9.2

(Unnecessary backstory for the curious: I'm trying to avert the carpal tunnel I feel coming on from programming on my Macbook keyboard alone. I'm a pretty wide-shouldered, wide-chested guy and the position I have to take to get my hands close enough together to type on the keyboard has me, essentially, contracting my hand laterally such that the outsides of my palms and my forearms form a 135-degree angle, which is horrible posture. I need to be able to spread my arms farther apart.)


KeyRemap4MacBook

I knew I had seen this somewhere…

All you need to do is install KeyRemap4Macbook.

From the "implicit behavior" section:

Share state of modifier keys with all connected keyboards:

When you are using multiple keyboards, modifier keys are shared with all keyboards.

For example, pressing "shift key on keyboard1" and "space key on keyboard2" sends shift-space.

Yes, it works on other Macs too, not just MacBooks.


I made a utility that does this and works on Sierra.

I hope posting this isn't against the rules, but you can grab it here: https://www.electrollama.net/multimod