code: function(data, hashId, key) {
          if (hashId == -1) {
              // record key
              data.inputChar = key;
              data.lastEvent = "input";
          } else if (data.inputChar && data.$lastHash == hashId && data.$lastKey == key) {
              // check for repeated keypress 
              if (data.lastEvent == "input") {
                  data.lastEvent = "input1";
              } else if (data.lastEvent == "input1") {
                  // simulate textinput
                  return true;
              }
          } else {
              // reset
              data.$lastHash = hashId;
              data.$lastKey = key;
              data.lastEvent = "keypress";
          }
      }
docs: workaround for j not repeating with `defaults write -g ApplePressAndHoldEnabled -bool true`