Textmesh.text: How to change it on playmode with the keyboard like in hierarchy?

void OnMouseDown(){
// Debug.Log(“On mouse down”);
tmThis.text = “New Name”;
}

I don’t how to let a player:
-Click on his name; Done
-Edit it with the KeyBoard;
-Accespt it with ENTER

Thanks

Screenshot: Asset Imported