After some verbs you can either choose to use
the gerund or the infinitive:
Begin, continue, forget, go on, hate, intend, like, love, prefer, regret, remember, start and stop
I forgot writing him a text / I forgot to write him a text
I hate watching action films / I hate to watch action films