Adverb form of Melancholy.
After receiving a detention slip, the student melancholously took his seat.