Unfortunately that didn't work... I guess that when you pause the game, you automatically freeze all nodes. So in the moment you pause the game, the ispaused() function will always return false inside the inputevent function.
Is there a way to delay the setpaused() function so I can first disable the input before going into paused mode? It seems that when the button is pressed, the setpaused() function is always firing first.