Answer:
On a British enemy ship.
Step-by-step explanation:
He was trying to get some POWs released. The Captain made a deal but said it wouldn't matter by tomorrow morning because the Fort would have fallen. The entire night Key was watch and relaying to the Americans being held bellow decks if the flag was still flying.
As history shows, it was.