To what tune was Francis Scott Key's poem sung a few days after it had been written?

Francis Scott Key wrote the Star Spangled Banner as a poem. His poem was sung a few days afterward to the tune of â??To Anacreon In Heaven.â??