Thank you very much for the comment!
At first I was going to use the mouse to determine the direction of the attack. In the end I didn't use it and I was thinking of adding a key for the action, but I was late and I forgot about it XD