It's very simple :3
Make sure to read the comments above each event to understand how everything works.
In general, we use a variable that increase after every press of the punch key, and based on that variable we play a different punch animation.