Fade In and Fade Out of movement

Hello!a bit of breaking
Could someone help with adding fade In (acceleration), and fade out (breaking) to the movement generated by using keyboard. I’d like to have acceleration from 0 to destination point, and after release, just a bit of breaking, to simulate real object movement. Tried few methods, but can’t get it working ok.