When I press "w" my truck moves forward, is there a way so that after I let go of "w" that my car will slow down after a bit of movement?
Current code is pretty basic:
Help is appreciated!
if (Greenfoot.isKeyDown("w")==true)
{
move(5);
}

