issue with the input keys

I’m trying to make my game character shoot when pressing space. the problem though is that he only wants to shoot when i press space and the left or right key at the same time. could i get some help with this issue please?
also, here’s some code for you:

function Update () {
   var turning = Input.GetAxis("Horizontal");
   var fireAtWill = Input.GetButton("Fire2");

   if(turning){
         gameObject.rigidbody2D.AddTorque(turning*turnVal);

   if (fireAtWill || Input.GetKeyDown("space")){
         Instantiate(bullet1, Vector3(transform.position.x+0.82, transform.position.y + 2.5, transform.rotation.z), transform.rotation);}
         Instantiate(bullet1, Vector3(transform.position.x-0.82, transform.position.y + 2.5, transform.rotation.z), transform.rotation);}

}

thank you.

Using a input in a variable isn’t a great method of using input, instead use mouse button like this:

function Update () {
var turning = Input.GetAxis(“Horizontal”);

if(turning){
gameObject.rigidbody2D.AddTorque(turning*turnVal);

if (Input.GetMouseButtonDown(2) || Input.GetKeyDown(“space”)){
Instantiate(bullet1, Vector3(transform.position.x+0.82, transform.position.y + 2.5, transform.rotation.z), transform.rotation);}
Instantiate(bullet1, Vector3(transform.position.x-0.82, transform.position.y + 2.5, transform.rotation.z), transform.rotation);}

}