If like me you remap the command key to the emacs meta key this will help you.
This is how you can remap the command key to be the meta key in iTerm2 emacs.
In the "Keys" tab in configuration, change "Left Command" to map to the "Right Option" key
Under the "Profiles" tab changed "Right Option" key to act as Esc
Hopefully that helps anyone else using Emacs with iTerm2 on OSX.