Marios skid stop

Hi all,

I have been mucking around for a while now and can’t get it to work. In a platformer and my character is moving one direction and I push on the other is there an easy way to get the character object to deaccelerate faster than it would if you took your finger off of the direction key for a few milliseconds before it turns and goes the other way. Think Super Mario Bros one.

Any way as always cheers for any help.