How do i stop my character from jumping midair when i press W and Space togheter

I have this problem here is code of player:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Player : MonoBehaviour
{

public float moveSpeed;
float xInput, yInput;

Vector2 targetPos;

Rigidbody2D rb;

public float jumpForce;
bool isGrounded;
public Transform groundCheck;
public LayerMask groundlayer;

public Vector3 respawnPoint;
private void Awake()
{
rb = GetComponent();
}

void Start()
{
    
}

// Update is called once per frame
void Update()
{
   if(Input.GetKeyDown(KeyCode.Space)) 
   {
       if(isGrounded) 
       {
           Jump();
       }
       
   } 
   
}

private void FixedUpdate()
{
    xInput = Input.GetAxis("Horizontal");
    yInput = Input.GetAxis("Vertical");

    transform.Translate(xInput * moveSpeed, yInput * moveSpeed, 0);
    PlatformerMove();

isGrounded = Physics2D.OverlapCircle(groundCheck.position,0.01f,groundlayer);

}
void Jump()
{
    rb.velocity = Vector2.up * jumpForce;
}
void PlatformerMove() 
{ 
    rb.velocity = new Vector2(moveSpeed * xInput, rb.velocity.y);
}

void OnTriggerEnter2D(Collider2D other)
{
    if(other.tag == "Enemy")
    {
        transform.position = respawnPoint;
    }
    
    
       
    
}

}

transform.Translate(xInput * moveSpeed, yInput * moveSpeed, 0);

Why does my character shoot into the air when I hit W would have been a better question.

Now that I’m aware of what the question actually is, the line above is your problem. It moves the character separate from rigidbody and Input.GetAxis("Vertical") uses the w and s keys for it’s input. So you are moving the character up when you hit w. If you press s your character will go through the floor. When using RigidBodies you should not be using transform.Translate` as this kind of ignores collisions.