What did Francis Scott Key do to get in jail?

he might have been a prisioner of war