trivial:
var metaKey = (os === 'mackintosh') ? 'command': 'ctrl';