From Relatively Fiction, Francis Scott Key was in position to see our "Star-Spangled Banner" because he was negotiating with the British on behalf of Dr. William Beanes. Dr. Beanes was accused by the British of being a spy and was being held on the HMS Tonnant of the coast of Maryland. The good news was that Attorney Key and his fellow negotiator, Col. John Skinner, secured the release of Dr. Beanes. The bad news was that the British were planning a military action and Key's party knew too much about British plans to be released before the British attack.
There was a 1955 TV show in the "Cavalcade of America" series entitled "The Rescue of Dr. Beanes."