Left arrow to go left, right arrow to go right, up arrow to jump.
When you pass through the sword, pretend that you have picked it up.