Added OSX code

Sets command key to meta and option key to alt.
Merge branch 'osx'