Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The F4/Dashboard key has two modes and (presumably) two different key codes. The first mode is as the Dashboard key, which predictably enough brings up Dashboard. The second mode is as F4, which can by invoked by holding down the Fn key while pressing the key.

The keycode for F4 is 118. I'd like to find the keycode for the Dashboard key so I can remap my Dashboard key ala 33844, and maybe even the keycodes for the other "special" keys such as Exposé, Vol Up/Down, and Desktop.

Unfortunately, tools such as Full Key Codes don't seem to be able to intercept and print out these particular keys. How else could I find the keycode for the Dashboard key?

Note: I am NOT trying to remap the Dashboard functionality to one of the Fn keys via System Preferences, nor am I trying to "flip" my Fn and Special keys using System Preferences or Function Flip.

share|improve this question
up vote 2 down vote accepted

I'm not sure about this, but I think I read somewhere that the Dashboard key doesn't act like a normal key. The keyboard firmware, instead of sending the keystroke to the computer, tells the computer to launch Dashboard. As such, the "special" keys don't have key codes. That said, if someone else has different information…

share|improve this answer
I think so too. I have tried to help mike in the past but I could find him a solution that he liked. – Tiago Veloso Sep 7 '09 at 11:57
Thanks Benjamin. Hm, we'll see if someone turns up some other info. I certainly hope you're wrong! ;) – emmby Sep 8 '09 at 17:15

I use a standard Windows keyboard, and activating Dashboard is also done via F4. I think the standard code for F4 is the one you're looking for; my keyboard has no special firmware to speak of, yet it can activate Dashboard without a problem.

Hope this helps you!

share|improve this answer

I'm not too sure about what you wanted to do but here is what I noticed.

Basic needs

Actually, F4 is the default shortcut for Launchpad in the System Preferences > Keyboard > Shortcuts > Launchpad & Dock > Show Launchpad.

As for the Dashboard, the default shortcut is F12 in System Preferences > Keyboard > Shortcuts > Launchpad & Dock > Mission Control.

With these two settings, you should be able to achieve what you need.

Advanced needs

If you need more, you can look into the Karabiner Software for OSX, it contains a lot of pre-configured remappings, but most of all, it has an EventViewer in the Misc & Uninstall tab that shows you what are the keycodes of what you pressed. It could be useful to get the actual keycodes of what you want (except if they are captured by the system before the Karabiner application, but that's another story).

Hope this helps !

share|improve this answer

Your Answer


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.