What does your hat keep it mean?
It means for you to keep your hat. Perhaps you are thinking of
"keep this under your hat," which means "keep it to yourself" or
"keep it secret." The image is of someone hiding something beneath
their hat, on top of their head, where only they know it's
there.