pensively

adverb
  1. in a thoughtful, reflective, or contemplative manner, often with a hint of sadness or melancholy

Examples