Press space to attack, hold Q to block, and press E to parry. If you press space just after an attack, then you attack again. You can attack 3 times in a row.
This isn't great, the code was well made, but the animation wasn't.