Left and right to move Z to jump X to attack A to heal if you have enough soul you can attack up and down with up and down arrows
credit to team cherry for hollow knight the health UI is very glitchy the soul is also infinite