If you have a knife, hatchet, or improvised tool in your inventory, it will automatically use that tool to open cans.