When Baljeet becomes concerned that he is losing his mental edge, the boys invent a cerebral stimulatory hat, or “Brain booster,” to help him. But when the hat exceeds expectations and makes Baljeet exponentially smarter, he suddenly views everyone else as beneath him and becomes a threat to civilization by taking Earth’s atmosphere and bringing it to the moon. Meanwhile, Dr. Doofenshmirtz plans to use his “Key-Find-Inator” to collect all the keys in Danville in hopes that it will lead to the Key to the City.