Keep velocity when input keys arent being used

So when the player lets go of the movement keys the character will keep the speed that hes going at. Something that might happen is that if the character hits a wall he will keep running into it, and also if there is something that gives the player a speed boost it wont work because the velocity float is clamped. But anyway this is what Ive got so far.

How do I link it so that if there is no buttons being pressed then the velocity float will stay the same.

Just set the “character deceleration walking” to 0.