He used to visit them when the mood took him.
⇑ Translate the sentence above by Google ⇑
Related: mood
Prev: The opening shot of dark, rainy streets sets the mood for the whole film.
Next: She was clearly relaxed and in an expansive mood.