"Used to" has two meanings, and we use different forms of the verb for each meaning. When used with the present simple verb, it means something that was typical or common in the past (e.g., "I used to live in Shanghai," "He used to work at Microsoft," "She used to have a cat named Kiwi," etc.). When used with a gerund (-ing ending) verb, it means to be accustomed to (e.g., "When he moved to England he had to get used to driving on the left side of the road," "She is not used to waking up so early," etc.). The form of the verb tells the listener/reader which meaning is being communicated, so it is important to get this right.