Where was francis Scott key when he wrote the star spangled banner?

He was in Maryland.