Left and Right Arrow Keys to move. Z to Jump. X to Spin. You can destroy badniks but you can't destroy walls.
Credit to SEGA for making Sonic in the first place. Simple little game.