To get the Key Sword in Castle Crashers, head to the Industrial Castle level after Pipistrello's Cave, where you'll encounter a large enemy holding the Cardinal Animal Orb. The Cardinal helps sniff out hidden items.
With the Cardinal in tow, go to the Full Moon level after Medusa's Lair. The Cardinal will find and hand you the key in the second hut, just before the Snow World level. The Key Sword then opens the final door in the Animal Ark and unlocks the Berserker animal, which grants you a magic boost.