Using an item in inventory needs getting used to.
- Select the inventory square at top right of the screen.
- Select an item from the icons on the column - in this case the hammer.
- Then select the action you want at left column. The actions available are examine (eye), take (hand) and combine (+). Use the hand.
- Then click the shovel.