When the British invaded Washington in 1814, Ross and Cockburn with their staff officers made their headquarters in Upper Marlboro, Md., at the residence of a planter, Dr. William Beanes, whom they subsequently seized as a prisoner. Upon hearing of his friend's capture, Key resolved to release him, and was aided by President Madison , who ordered that a vessel that had been used as a cartel should be placed at his service, and that John S. Skinner, agent for the exchange of prisoners, should accompany him. Gen. Ross finally consented to Dr. Beanes's release, but said that the party must be detained during the attack on Baltimore.Key and Skinner were transferred to the frigate ''Surprise,'' commanded by the admiral's son, Sir Thomas Cockburn, and soon afterward returned under guard of British sailors to their own vessel, whence they witnessed the engagement. Owing to their position the flag at Fort McHenry was distinctly seen through the night by the glare of the battle, but before dawn the firing ceased, and the prisoners anxiously watched to see which colors floated on the ramparts.more...See more text