Left and right arrow keys and SPACE (You have a 0.4 second cool down on each punch key).
Don't own the song so fish. It's a prototype so it's not perfect :P I only programmed Sonic to do 1 attack so fish. This was pretty time consuming because of the amount of test runs I did for each separate piece of coding. @ChaseSmith915 Sonic is from Sega.