it works!
edit:the commands are a bit wacky,i suggest trying to revamp it or make the katana attack more effective or more confortable to use