Is there a sane way to emulate the newer media key behavior completely on an Apple Extended Keyboard II? The operative word here being "completely".  I recently found a nearly flawless (cosmetically and functionally) AEKII (Alps, not Mitsumis) on eBay and won it for $30.  It's an awesome keyboard and it gives me fond memories of my typing classes in elementary school, but I hate the lack of modern media keys; I used them all the time on my wired Aluminum keyboard.

My current "hack" involves some custom AppleScripts (I've only implemented volume up/down) that I imported as Alfred Extensions and bound to some custom hotkeys, but this approach has some downsides:


No system feedback; the volume overlay and sound effect don't show up.  And I'm fairly noobish when it comes to AppleScripting so I have yet to figure out if it's possible to do this.
Because it's a script and not a true hardware interrupt, things like system load can lead to delays in responding to the key presses.
I can't hold down the key to affect a continuous increase or decrease.  I have to repeatedly hit the keys to repeatedly increment or decrement the volume value.


I'd imagine that there is a way to write an AppleScript that captures keypresses and I can use that to process a continuously depressed key, but I haven't found it worthwhile to spin a bunch of cycles trying to figure this out.

Are there any other AEKII users out there that have found a sane way to handle special functions from the keyboard?
You could try KeyRemap4MacBook:

or FunctionFlip:

If neither works, you could also try creating a private.xml in KeyRemap4MacBook:
&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;root&gt;
&lt;item&gt;
&lt;name&gt;Change F-keys&lt;/name&gt;
&lt;identifier&gt;0A0FE074-9C9C-43DC-8AEB-6683C5CB3259&lt;/identifier&gt;
&lt;autogen&gt;--KeyToKey-- KeyCode::F1, KeyCode::BRIGHTNESS_DOWN&lt;/autogen&gt;
&lt;autogen&gt;--KeyToKey-- KeyCode::F2, KeyCode::BRIGHTNESS_UP&lt;/autogen&gt;
&lt;autogen&gt;--KeyToKey-- KeyCode::F3, KeyCode::MISSION_CONTROL&lt;/autogen&gt;
&lt;autogen&gt;--KeyToKey-- KeyCode::F4, KeyCode::LAUNCHPAD&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F5, ConsumerKeyCode::KEYBOARDLIGHT_LOW&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F6, ConsumerKeyCode::KEYBOARDLIGHT_HIGH&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F7, ConsumerKeyCode::MUSIC_PREV&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F8, ConsumerKeyCode::MUSIC_PLAY&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F9, ConsumerKeyCode::MUSIC_NEXT&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F10, ConsumerKeyCode::VOLUME_MUTE&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F11, ConsumerKeyCode::VOLUME_DOWN&lt;/autogen&gt;
&lt;autogen&gt;--KeyToConsumer-- KeyCode::F12, ConsumerKeyCode::VOLUME_UP&lt;/autogen&gt;
&lt;/item&gt;
&lt;/root&gt;

It might only work if you use the external keyboard with a laptop or have another keyboard connected. From ConsumerKeyCode ignored - Google Groups:

KeyRemap4MacBook requires at least one keyboard with functional keys (Volume Control, etc)
when you want to change keys to functional keys.
If possible, please connect the Apple keyboard to iMac.
If you don't have another keyboard,
please use Spark or Quicksilver or other apps to this purpose.