Animations are hard, man!  I figured out the whole state machine thing, but this is all super sloppy.  This should have been done later, after the boring input stuff!  There is now a sword attack.