In Keyboard Controls: Move forward with W, left with A, down with S, and right with D. Press space to attack and shift to block one hit.
In Touch Controls: Drag the right center circle in the direction you want to move, tap the left button to attack, and hold the second left button to block one hit.