If bunny is jumping and his x position is lower than ScrollX (or something else in the middle of the screen), simulate pressing right or set x velocity to a positive value. When he falls, simulate pressing left.
Using lerp() might make this "sequence" look more natural.