Arrow keys to move, X to use hammer, Z to jump. Once you touch the Goomba and enter a battle. (I added some battle elements, and that's it) up or down to select action space to confirm
Credit to Brad for the most of the code