code: function(ev) {
          if (window.navigator.platform.match(/Mac/)) {
              // metaKey maps to ⌘ on Macs
              return ev.metaKey;
          }
          else {
              // Both altKey and ctrlKey == true on some Windows keyboards when the right-hand ALT key is pressed
              // so just be safe and make sure altKey == false
              return (ev.ctrlKey && !ev.altKey);
          }
      }
docs: Returns whether the "Ctrl" key is pressed (or ⌘ if this is a Mac) for a given keyboard event
  
  @param ev The keyboard event
  
  @return {boolean} Whether the "Ctrl" key is pressed