The coordination of a sensory or ideational (cognitive) process and a motor activity.