C# to JS translation

Basically, I’m trying to get the JS equivalent of this:

using Input = Moga_Input;

It extends or overrides Unity’s Input class in order to detect input from an attachable game controller for mobile devices allowing me to get button presses like so:

if(Input.GetKeyDown(l1ButtonKeyCode)){

    //do something

}

Actually, here is the correct answer:

private var Input : Moga_Input;

Now it replaces the Unity Input with it’s own. And I can call the button presses from the controller like so:

if(Input.GetKeyDown(l1ButtonKeyCode)){

}

I have no idea. But you could just use Moga_Input as it is.

Import Moga_Input;

if(Moga_Input.GetKeyDown(l1ButtonKeyCode)){
 
  //do something
 
}