In an absentminded way; without thinking about what you're doing because your mind is on something else.
From absentminded (adjective) + -ly (adverb suffix). Follows the standard pattern for converting adjectives to adverbs in English.
Try Another Word