Another pretty simple thing is having 3 variables.
Accelleration Decelleration and Speed
You will move the tank using speed.
Input Forward will use an Accelleration of (5?) to increase speed
Whe no input is given the speed will be reduced by Decelleration(10)
Sure you will need to set a Max Speed to something and Minspeed 0 in some case