consistent speed while jumping (jump and run game)

Hi I work on a simple jump and run game but I have the problem that when I jump the player stops.
I don’t know why because I add in jump() the x movement.

void run(){
        rb2d.AddForce (new Vector2 (moveForce, 0f));
    }

    void jump(){
        rb2d.AddForce (new Vector2 (moveForce, jumpForce));
        jumping = true;
    }

I solved the problem by using RigidBody2d.velocity instead RigidBody2D.AddForce

    void run(){
        jumping = false;
        rb2d.velocity = new Vector2(moveSpeed, rb2d.velocity.y);
    }

    void jump(){
        jumping = true;
        rb2d.velocity = new Vector2(rb2d.velocity.x, 0);
        rb2d.velocity = new Vector2(rb2d.velocity.x, jumpSpeed);
    }