Space to draw and sheath swords. If they are drawn: Z-short melee attack (slice) X-long melee attack (spin attack) Z+X-special attack (sword slam) If they are not drawn: Z-range attack (rhombus projectile)
All by me. For this: http://scratch.mit.edu/projects/25640244 Which is also by me. :P