Multiple logitech keyboards with different keymaps?
You can use KeyRemap4MacBook to add settings for specific devices. EventViewer.app shows the vendor and product IDs.

&lt;?xml version="1.0"?&gt;
&lt;root&gt;
  &lt;devicevendordef&gt;
    &lt;vendorname&gt;HEWLETT_PACKARD&lt;/vendorname&gt;
    &lt;vendorid&gt;0x03f0&lt;/vendorid&gt;
  &lt;/devicevendordef&gt;
  &lt;deviceproductdef&gt;
    &lt;productname&gt;MY_HP_KEYBOARD&lt;/productname&gt;
    &lt;productid&gt;0x0224&lt;/productid&gt;
  &lt;/deviceproductdef&gt;
  &lt;item&gt;
    &lt;name&gt;test&lt;/name&gt;
    &lt;identifier&gt;private.test&lt;/identifier&gt;
    &lt;device_only&gt;DeviceVendor::HEWLETT_PACKARD, DeviceProduct::MY_HP_KEYBOARD&lt;/device_only&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::OPTION_L, KeyCode::COMMAND_L&lt;/autogen&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::OPTION_R, KeyCode::COMMAND_R&lt;/autogen&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::COMMAND_L, KeyCode::OPTION_L&lt;/autogen&gt;
    &lt;autogen&gt;__KeyToKey__ KeyCode::COMMAND_R, KeyCode::OPTION_R&lt;/autogen&gt;
  &lt;/item&gt;
&lt;/root&gt;


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