Acceleration speed interval

I can adjust Max “walking” speed and max acceleration and it seems to work fine for how fast the character gets started.
Though I need to do: if character run in the same direction for some time slowly run faster. Something to control the last part of the max interval.