Select any item in the tree such as an object, a reference frame or a robot and press F2 to rename it.