docs: function(name, definition) {
          var inputs;
          if (Array.isArray(definition)) {
              inputs = definition;
          } else {
              inputs = [];
              if (definition.mouseButtons) {
                  for (var b in definition.mouseButtons) {
                      inputs.push(
                          new MouseButtonToggleInput(definition.mouseButtons[b])
                      );
                  }
              }
              if (definition.keys) {
                  for (var k in definition.keys) {
                      inputs.push(new KeyboardToggleInput(definition.keys[k]));
                  }
              }
          }
          this.destroyTriggerGroup(name);
          this._triggers[name] = {
              name: name,
              input: new ToggleInputGroup(inputs),
              downFor: 0,
              active: false
          };
  
          Crafty.trigger("ControlDefined", { type: "TriggerGroup", name: name });
      }