Absentmindedly

adverb see absentminded

Merriam-Webster's Collegiate Dictionary