Media Library new folder not created when hitting enter
## Bug report

### Required System information

- Node.js version: v20.18.1
- NPM version: 10.8.2
- Strapi version: 5.5.0
- Database: postgres
- Operating system: OSX
- Is your project Javascript or Typescript: Javascript

### Describe the bug

When creating a new folder in the media library, hitting enter after typing the folder name cancels and closes the modal, folder is NOT created.

### Steps to reproduce the behavior

1. Click on Media Library tab.
2. Click on "Add new folder" button
3. Type in folder name
4. Hit enter
5. Modal closes and folder is NOT created

### Expected behavior

Modal closes and folder is created

### Additional context
Tabbing to the "Create" button in the modal is not possible but should be.