You can change the name of a file or folder at any time. This action is available on the toolbar, in the right-click menu, and (on narrow screens) in the Actions menu (☰) — see Right-click menus for more.
Rename works on one item at a time. It's unavailable when nothing is selected, or when more than one item is selected.
Related actions: Deleting and Copy, cut and paste.