Schoolhouse Rock!

Three is a magic number.

This episode from the television show was prominent at the ending of the story. It took three keys to open the final gate to enter Anorak's castle.