Your problem here is that your conditional branch for stopping it, is set to only happen if the piano switch isn't on, move the conditional branch for stopping the piano to directly after play bgm.
You are welcome!
Just one more thing: you should start your music in the 1st page of your event. The 2nd page is set as Autorun. You don't need the engine to check that line (play BGM) every single frame.
It is an unrequired operation that you don't need (and you probably don't want). I am kinda sure that the engine still plays the music as intended but it is not how it is meant to be. When the player decides to play the piano, before turning the switch on. start your BGM, then use the 2nd page to handle the condition to stop it.
EDIT:
A much better way to do it is to create your conditional branch (the one where the player decides to start playing the piano) like this:
1 - Play BGM
2 - Display a Message like "Soft and calm music starts coming out of the piano...". Here you can even add something to tell the player that if the message window is closed the music also stops. That's entirely up to you.
3 - Fadeout BGM
This way the music automatically stops when the player closes the message window but keeps playing until that happens.
I edited my previous post ading a little suggestion. Try it and see if it fits your situation. In my opinion that's the best way of doing it.
I am glad to hear that. Good luck with your events!
If you anything else feel free to contact me whenever you want.