You can take my example, hope it is what you need :
https://drive.google.com/open?id=1x17HUsRZrSSrnZ3_F3JvmCJbc9IVlGki
Thank you so much!
One thing missing is that the sword kind of follows the mouse cursor as well, it might be hard to see without actually playing the game though