A or D or Left or Right arrow to move the character.
W or Up arrow to jump.
Hold F to throw the sword to hang and swing.
Press G to attack or hold G to throw the sword forward.
When it is hanging:
Use the A or D keys, or the Left or Right arrow keys to swing.
W or Up arrow to go up.
Use S or the Down arrow to go down.