Instead of characters instantly stopping, how can I make it smooth?

So basically, in a normal roblox game, when you take your fingers off of the WASD keys, your character instantly stops, how do I make it smooth so that when you take your fingers off the WASD keys, it doesn’t instantly stop but instead smoothly comes to a stop. Here’s an example

robloxapp-20210412-2018395.wmv (2.1 MB)