CharacterController multiple keys for player

Hi everyone I’m new at this java script please bare with me. I’m trying to create a simple CharacterController with multiple keys and trying to keep it less cluttered. This piece of code if (Input.GetKey(“w”) || (Input.GetKey(“[8]”)) works but only the w key works not the Keypad 8 number. does anyone know why?

private var characterControls: CharacterController = null;

private var walkingSpeed: Vector3 = Vector3.zero;

function Start ()
{

     // cashing a reference

     characterControls = this.GetComponent(CharacterController);

}

function Update ()

{

     walkingSpeed = Vector3.zero; //new vector3 (0,0,0);

     if (Input.GetKey("w") || (Input.GetKey("[8]"))

     {

     walkingSpeed += transform.forward; //forward w key

     }

     else if(Input.GetKey("s") || (Input.GetKey("[2]"))

     {

     walkingSpeed -= transform.forward; //back s key

     }

    if (Input.GetKey("a")) //move right

    {

     //walkingSpeed += transform.right;

     transform.Rotate(0,3,0);

     }

      else if(Input.GetKey("d")) //move left

     {

     //walkingSpeed -= transform.right;

     transform.Rotate(0,-3,0);

    }

     if (Input.GetKey("q")) //move right

    {

    walkingSpeed += transform.right;

    }

    else if(Input.GetKey("e")) //move left

    {

    walkingSpeed -= transform.right;
}
 
characterControls.SimpleMove(walkingSpeed * 3);  //player will move forward

{

}
}

I found by adding a extra ) the the end allows it to work now strange. That can’t be good right? if (Input.GetKey(“w”) || (Input.GetKey(“[8]”)))