code: function simulateKeys(editor, keysString) {
      // there can be multiple pressed keys separated by spaces. To simulate a
      // space press use a double space. split up the individual keys and
      // simulate each
      function ensureSpaces(s) { return s.length ? s : ' '; }
      var pressedKeys = keysString.length === 1 ?
          [keysString] :
          keysString.split(/ /g).map(ensureSpaces)
      pressedKeys.forEach(exports.simulateKey.bind(null,editor));
  }
docs: /*
  usage: keys.simulateKeys(editor, "h i  t h e e Left r")
  (should print "hi there")