How to select text in a shape?

I have a shape with text embedded. I cannot see how to select the text for editing - every attempt selects the shape itself. Just sometimes it seems to work, but don’t know how I have done it. Is it something to do with using the Shift key when trying to select?