He was carefully engaged in brushing his coat before putting it on, and seemed wholly engrossed in the task.
He was very focused on the task of brushing his coat, befroe he put it on.