code: function (commands) {
      this.activeCommands = [];
  
      this.setCommands(commands);
  
      this.currentTime = 0;
  
      this.keyboard = new Keyboard();
      this.gamepads = Gamepads.isSupported ? Gamepads : null;
  }
docs: Input constructor
  @param {Array} commands Array of command descriptions
  @constructor