i was afraid he was going to point out that `` the star-spangled banner '' had n't been written as a national anthem , and in fact had been set by francis scott key to the tune of a british drinking song .