Unity 2D jump problem

(basic Unity 2d controller code)when a player uses both jump buttons at the same time the value of height doubles.how can i fix it?

How are you reading the input?
If you’re reading the input in a key by key basis you can use an “or”. if you’re using GetAxis the value should be normalized regardless of whether you’re pressing one or more keys with the same axis value.

private void Update()
	//registering keys
    if (Input.GetKeyDown(KeyCode.Space) || Input.GetKeyDown(KeyCode.A))
    //using axis
    float jumpForce = Input.GetAxis("Jump");
    //do something with the axis value, which is normalized