as if you are not paying attention to what is happening near you, and are thinking about other things
心不在焉地;走神地

He stared absently at his food.