File | Project Structure | Modules
Ctrl+Shift+Alt+S
projectStructure

The Module page opens in the right-hand part of the Project Structure dialog when you select a module in the element selector pane.

Use the Name field to edit the module name. Other settings are available on the following tabs: