Pilots need to stay awake and alert at all times so they can be ready to take control of the airplane at a moment's notice. Some of the ways pilots stay awake include drinking caffeine, getting plenty of rest the day/night before, staying busy, keeping the cockpit warm and the lights bright.