MV Qinput - Making custom key input

Hello fellow makers, i'm using Qinput to remap the keys of game, and after fidling a little with the plugin code, he says that you are able to make custom inputs mapping

JavaScript:
  // you can create custom remap keys by aliasing this function
  // using "QInput.remap" without the public. Just add a similar if statement
  // or switch. You will need to initialize your custom key by doing something like:
  //   ConfigManager.keys["custom"] = "f1";
  //   QInput.remapped["custom"] = "f1";
  //
  // ConfigManager.keys is real remap key while QInput.remapped is the default
  // values, which is needed if you are using an in game key remapper so it knows
  // what value to set it when setting all the keys back to default.

I don't have formal experience and knowledge from JavaScript, so i tried a few things alone and with help of an I.A, i inserted those snippets in the code

ConfigManager.keys["camp"] = "q";
QInput.remapped["camp"] = "q";

Declared those before the Qinput.remap function.

And add this in the switch(key) function:

JavaScript:
case 'camp':
      return ConfigManager.keys['camp'];
      break;

So, after this add these:

JavaScript:
QInput.remapped = {
    ok: _PARAMS['Ok'],
    escape: _PARAMS['Escape / Cancel'],
    menu: _PARAMS['Menu'],
    shift: _PARAMS['Shift'],
    control: _PARAMS['Control'],
    tab: _PARAMS['Tab'],
    pageup: _PARAMS['Pageup'],
    pagedown: _PARAMS['Pagedown'],
    left: _PARAMS['Left'],
    right: _PARAMS['Right'],
    up: _PARAMS['Up'],
    down: _PARAMS['Down'],
    debug: _PARAMS['Debug'],
    fps: [_PARAMS['FPS']],
    streched: [_PARAMS['Streched']],
    fullscreen: [_PARAMS['FullScreen']],
    restart: [_PARAMS['Restart']],
    console: [_PARAMS['Console']]
    camp: [_PARAMS['Camp']]
  };

JavaScript:
(function() {
  var _PARAMS = QPlus.getParams('<QInput>', {
    'Ok': ["#enter", "#space", "#z", "$A"],
    'Escape / Cancel': ["#esc", "#insert", "#x", "#num0", "$B"],
    'Menu': ["#esc", "$Y"],
    'Shift': ["#shift", "#cancel", "$X"],
    'Control': ["#ctrl", "#alt"],
    'Tab': ["#tab"],
    'Pageup': ["#pageup", "#q", "$L1"],
    'Pagedown': ["#pagedown", "#w", "$R1"],
    'Left': ["#left", "#num4", "$LEFT"],
    'Right': ["#right", "#num6", "$RIGHT"],
    'Up': ["#up", "#num8", "$UP"],
    'Down': ["#down", "#num2", "$DOWN"],
    'Debug': ["#f9"]
    'Camp': ["#c"]


Well, the problem is, doing so broke the plugin, and i can't call the key "camp" in the game. Anyone experienced with javascript can give me a hand?

The customized file is attached. Thank you in advance.

Original thread: https://forums.rpgmakerweb.com/threads/qinput-making-custom-key-input.181485/