Reset acceleration when direction is inverted