The parents are suppose to teach them self control.
And, except in very rare cases where the child is clinically insane and so is in their own world, it actually works.
Do all children have seizures from hypoxic encephalopathy?