Click to throw the sword, and space to swing it. >>>TIP>>> press [B] to click but not throw, e.g. when clicking fullscreen.
This is the sword mechanics showcase for the full release.