ptext: add function to find the internal representation of the key