What war is francis Scott key in?

Francis Scott Key is known for writing the lyrics to the American National Anthem (the Star Spangled Banner), which he did during the War of 1812.