You can rename an object by using the Rename entry from its right-click menu or the F2 shortcut.
You can also change the name of an object via the Object Properties window: the text field Name corresponds to the name of the object. The field is editable and can thus be used to rename an object.