Something as small as an incorrect transponder setting can lead to an accident if you allow yourself to become distracted. Here’s how this pilot nearly lost control on takeoff, and what you can do to avoid the same mistake.