Change text in real-time editor

I want to analyze the text in a real-time, since I’m making a real-time editor for the text control system (Gutenberg java), with wp.data.select (‘core/editor’), so is there a way to activate it, once it changes the text in the real-time editor?