Press the button to swap the two items.
Look at the code to see the block I made for it. You might want to backpack it. Very handy.