A flap over the trachea that keeps out food and anything else that could clog the trachea is
Epiglottis
Epiglottis is a flap in the throat that keeps food from entering the windpipe and the lungs. The flap is made of elastic cartilage covered with a mucous membrane and is attached to the entrance of the larynx.