Change shortcut keys on Mac

The key maps change if running on a Mac.

PS: Please review my english on src/ui/editor.js