To have your eye on something is to pay close attention to it. If I have my eye on you I am watching you closely. To keep your eye on the ball is to pay close attention to something. The expression comes from sports. I have especially heard it used in baseball.
When someone is driving it is a good idea for them to keep their eyes on the road.