Aspiration pneumonia is when the wrong thing goes into the lungs. An example of this is when vomit gets into the lungs after a child throws up. This usually happens when the child can't control his or her swallowing to stop the vomit from going into the lungs. For instance, this could happen to a child with brain injury.