Problem with an event. (SOLVED)

So i made an event that allows player to play piano. The problem is that when playing a specific song a cutscene should start, but i can't make it start. I tried to make it like this: "When X key is pressed, if Piano variable=0 then piano variable+1, else Piano=0. Then when Y key is pressed, if Piano variable=1 then piano variable+1, else Piano=0.
Then there is one last conditional branch: If Piano=10 cutscene starts.
Even if i play the correct sequence event doesn't start.
How can i make it work?
I have no idea because I don't understand the language in the screenshot. Most likely no one else here does either.
I have no idea because I don't understand the language in the screenshot. Most likely no one else here does either.
It's italian. Anyway:
If: Script (key is pressed)
Show image---
Move image to point x - y
Play se
If Variable X = 0
then variable X + 1
Else Variable X = 0

Solved.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-an-event-solved.104760/