Isaac Asimov wrote an essay that goes into the history of the Star Spangled Banner. He describes all four stanza's (we typically sing only the first). Go give it a read.
The Four Stanzas