Use of cognitive versus perceptual heading during imagined locomotion depends on the response mode.