Sentence:  Sometimes he would grunt softly to some invisible onlooker beside him , sometimes he would look stern and moralistic as his pencil <WSD>did</WSD> what he disapproved . 
Meaning of the word marked with <WSD> tags:  engage in