Press left arrow key to hook punch, up arrow to uppercut, and down arrow key to block. Space to change the enemy health. The enemy will only take damage when you hit it to the edge of the screen. Once it's weakened (0 HP), punch it once, and it will shut off.
This took me super long to make. It was going to take even longer but I simplified it.