Counter the momentum, but don't hold the counter button too long, or it will overcompensate.
So, to stop forward or backward momentum, press the up-, or down-arrow. To stop sideways drift, press the left or right mouse buttons.
With that in mind: The minigames are not timed, so there is no...