2D Sprite Velocity Issues (Sliding)

NOTE I’m a noob programmer, and I’m trying to learn the basics for game development in my future, so I figured I’d try making a small 2D game for fun and for practice.

My character can move and jump, but when I let go of A or D, he keeps sliding in the direction he was traveling. I assume this is the velocity slowing down to 0, but is there any way to make the velocity instantly go to 0 when I let go of the key?

Thanks in advance!

Yes, set the Rigidbody2D velocity to zero using: Unity - Scripting API: Rigidbody2D.velocity