How do I map the keyboard media control keys to switch tabs instead? These days I get all my music needs from streaming websites, so the media keys on my keyboard are basically useless to me:



I want to map them to cmd+[ and cmd+], which is the shortcut to change tabs across many mac applications (Chrome, SublimeText). Can this be done and if so how do?
You can use a private.xml like this with KeyRemap4MacBook:

&lt;?xml version="1.0"?&gt;
&lt;root&gt;
  &lt;item&gt;
    &lt;name&gt;test&lt;/name&gt;
    &lt;identifier&gt;test&lt;/identifier&gt;
    &lt;autogen&gt;__ConsumerToKey__ ConsumerKeyCode::MUSIC_PREV,
    KeyCode::BRACKET_LEFT, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L&lt;/autogen&gt;
    &lt;autogen&gt;__ConsumerToKey__ ConsumerKeyCode::MUSIC_NEXT,
    KeyCode::BRACKET_RIGHT, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L&lt;/autogen&gt;
  &lt;/item&gt;
&lt;/root&gt;


For some keyboards you might need to replace __ConsumerToKey__ ConsumerKeyCode::MUSIC_PREV with __KeyToKey__ KeyCode::VK_CONSUMERKEY_MUSIC_PREV.

See the source for the key code values and predefined settings.