Next to BeardBot's treasure is an oyster that you have to open to get one of the keys to open the treasure. Close the oyster and open it again to find the pearl.