Press Z or space once you stomp the goomba!
you can style for a bit and not hold it (have to be on the goomba btw)