Your turn: z or x to attack. Z for front, x for back. Deal more damage by spamming the button during the animation. (Attacking the shielded side of the enemy does very little damage) Enemy turn: Space to jump and avoid yellow attacks, z to counter pink ones.
Atari 2600 for inspiration Part 3 I'm too lazy to link the other two games here, so just find them on my profile page