You want to take the scene A and write the function you want to connect too
then when you instance the Scene B you want to connect that over to scene A within scene A
var bScene = sceneB.instance()
bScene.connect("SIGNAL NAME", self, "_sceneB_connection" )
If you have any other questions, don't be afraid to ask more questions!
FYI the signal name for button pressed is "pressed"