For player 1: WASD to move. Space to open sword. Hold space and let go to stop pointing sword. For player 2: arrow keys to move. 0 to open sword. Hold 0 and let go to stop pointing sword.
Thanks to @54t67 for the movement codes.