Is there a function for text onChange?

Is there a function for text that allows me to do something every time the text is changed or do i have to write my own function (which i k how to write but for future use is there)?