Is francis Scott key's the star spangled banner copyright or public domain?

Key has been dead for 170 years, so it's long since been in the public domain.