Code for YX5300 MP3 player - 2 audio triggers wanted

I also didn't see how to trigger like I want, though I know it's possible.

It is possible to read the state of a switch. Trivial, even.

It is possible to compare the current state of the switch to the previous state, if that is important. Trivial, even.

It is possible to do something when the state has become pressed, or when the state is pressed, whichever matters. Trivial, even.

As to what you want to do? Who knows? All that hand-waving conveyed no information.

Post a link (as a link, if you want help) to the hardware you are using. Post some code that actually does something, even if it doesn't do everything that you want.