With the technique of transcranial magnetic stimulation it is possible to study the function of motor pathways in normal subjects and in patients with neurologic disease. In conjunction with both evoked and event-related potentials, transcranial magnetic stimulation can be used to probe the processes involved in analyzing sensory input and in preparing for motor output.