The controls are written in the game menu.
You need to block attacks with the "K" key.
Attack with "J" key
and you can also press dash "shift"
Block is necessary to avoid damage. Even using a block does not guarantee that you will win easily, but it will make you much stronger.