Why do I have to press the spacebar multiple times for my player to jump?

This is the code:

void PlayerJumping()
    {
        if (Input.GetButtonDown("Jump") && isGrounded)
        {
            isGrounded = false;
            myBody.AddForce(new Vector2(0f, jumpForce), ForceMode2D.Impulse);
        }
    }

I have to press spacebar multiple times for my player to jump and I’m not sure how to fix it. Pressing other keys for jumping does the same thing.,

It is impossible to tell based on just that part of your code. It is most likely either the jump force not being sufficient and/or where you are setting the isGrounded field.

If this function is called in FixedUpdate(), then the problem you’re experiencing is in the way that Input.GetButtonDown() is called at a fundamental level.

Input is processed during Update(), which means that, with a high framerate, you will easily miss the opportunities for input to be processed. For example, at ~200 fps, it would be something like:

FixedUpdate()
Update()
// key is pressed
Update() // Input.GetButtonDown() is active this frame
Update() // Input.GetButtonDown() is now false
Update()
FixedUpdate() // Your next check was performed here

In short, the proper solution is to put your Input-handling logic in Update() (or, as it were, a function being called by Update()).