You could multiply the speed by 1.001 or whatever values suits when accelerating, and when no key is pressed, multiply the speed by 0.99.
Other than that, you could make use of SIN/COS to produce curves for accelerating and decelerating.
Other than that, you could make use of SIN/COS to produce curves for accelerating and decelerating.