Listen for Input Action while paused?

Unfortunately, using your way, when modifying the parent class of the widget, the program crashes, which I tested under 5.3.