I think it's "when". It means "when they feel like it", "only when they want to". The "fit" is a seizure, as in epilepsy—not a real one, of couse, a figurative one.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.