In the sentence "Keeping track of all her grandkid's sporting activities was driving Ms. Smith to tears," the gerund "Keeping" functions as a noun. Specifically, it acts as the subject of the sentence.
So, the correct response is:
Keeping functions as a noun.