Sentence:  Quite naturally , they make the investigation , first , by prohibiting the patient from making any movements at all and then , later , by repeating it and allowing the patient to move in any <WSD>way</WSD> he wanted to . 
Meaning of the word marked with <WSD> tags:  how something is done or how it happens