Is there a way to check if user is editing text?

I have code running on the update call. I noticed that if I’m editing text I get updates as the user is typing.

Is there a way to tell if the user is editing typing in text to pause updating?