c# 2d top down character movement

so I have a little character that runs around on a field using this:

void Update ()
	{
        float runSpeed = 10f;

		float moveH = Input.GetAxis ("Horizontal");
		float moveV = Input.GetAxis ("Vertical");

        Vector2 vel = new Vector2(moveH * runSpeed, moveV * runSpeed).normalized;

        vel *= runSpeed;

        rigidbody2D.velocity = vel;
	}

But here my problem is that when I release the W, S, A or D button the character will glide a bit extra before stopping. I would like hte character to eather get a rather quick decending in speed when stopping or comming to a complete stop when releasing the move button.

Increase Linear Drag and decrease Mass in Rigidbody 2D component of character in Inspector tab. The sensitivity of control keys will depend on relation between theese values.

You can increase rigidbody’s drag variable as you want.

I think, rigidbody2D.drag = 1.0f is exactly the answer of your question.

or

Inspector > Rigidbody2D > Linear Drag = 1

You can increase it from inspector or from your script.