Look at 'to'. It's either part of the full infinitive (to learn, to see, to eat...) OR it's a preposition. If it's a preposition, when it is followed by a verb the verb must be the -ing form - the present participle.
This problem crops up quite often when we have a prepositional verb with 'to' as the preposition:
'I still haven't got used to parsing sentences.'