To avoid obstacles but also collect coins, use the arrow keys to duck, jump, and slide. If you find power-ups and upgrades on the road, make sure to go through them and collect them, since they are going to be of great help in improving all your stats!