Who wrote the poem which eventually was adopted as the national anthem of the US?

Francis Scott Key