You want to take the scene A and write the function you want to connect too
func _sceneB_connection:
Pass
then when you instance the Scene B you want to connect that over to scene A within scene A
var bScene = sceneB.instance()
add_child(bScene)
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"