Logitech have to layouts, one for PC and one for Mac. Here is the key combination to switch between layouts.
Fn+O - Swaps PC layout to Mac layout
Fn+P - Swaps Mac Layout to PC layout
Fn+Esc - Swap between the smart keys and F1-12 keys
Esc+O Esc+O Esc+B - Reset the MX Keyboard