What closes to keep food out of trachea?

Nothing.The oesophagus is located next to it. To enter food into your trachea,

you have to choke your food.