Apple - Configuring custom keys on bluetooth keyboard

  1. Download and install KeyRemap4MacBook.

  2. Open EventViewer:

    open /Applications/KeyRemap4MacBook.app/Contents/Applications/EventViewer.app
    
  3. Press the key that you wish to customise and note the KeyCode:::

  4. Create a private.xml like this:

    <?xml version="1.0"?>
    <root>
      <item>
        <name>Modifier Remapping</name>
        <identifier>modremap</identifier>
        <autogen>__KeyToKey__ KeyCode::CONTROL_L, KeyCode::COMMAND_L</autogen>
      </item>
    </root>
    

    Replace KeyCode::CONTROL_L with the key that you wish to change and KeyCode::COMMAND_L with the key that you wish to replace it with.