Thanks for the reply oosyrag !
This method works, but I feel that the movement is still somewhat slidey, especially while turning. I need this to not happen.
What I want to happen when I release the W or S key is that the "tank" stops moving almost immediately, with only a few... say 20 pixels of "slide distance".
Another thing I'm still confused about in the Car behavior is the relation of "deceleration" and "brake" (or reversing?). What I mean is that I'm not sure how I can control my braking force so that it still take some time to decelerate when I release W/S key, but comes to full stop almost immediately upon pressing the opposite key (i.e. pressing S while moving forward (W) and vice versa). How do I make it like so?
This is what I've tried so far. It controls like a tank, but it still doesn't move quite like a tank, if you know what I'm saying.
I think at this point I should also mention that I want the movement to be a lot like a top-down version World of Tanks, or War Thunder.