Lock in focus and stay on track.
When you focus, it's kind of like using your mind as a magnifying glass. You zoom in on one thing at a time. That way, you can understand it better. The next time you find yourself zoning out, take a deep breath in and out to get your mind back on track.