add force on the x when character jumping

hey,
i would like my character to jump more to the side and less up.
this is my jumping code right now:

if (Input.GetKey(KeyCode.Space))
        {
                r2d.velocity = new Vector2(r2d.velocity.x, 8f);
        }

Any help is much appriciated

You probably want Input.GetButton/KeyDown in conjunction with:

or

instead.