And the issue only happens when you press the “p” key, correct? It works when the PauseButton object is clicked.
This happens because clicking the PauseButton selects it and makes it available for the event and its subevents. However, pressing the ‘P’ key doesn’t select a PauseButton because it hasn’t been clicked and so hasn’t been selected, so it’s not in scope for the text change events.
This is easily fixed by adding a “Pick all PauseButton objects”: