How to reproduce:
- Create an empty project and open it
- In the Hierarchy tab, right-click on the empty space and click “Create Empty”
- In the Hierarchy tab, select the newly created GameObject
- In the Inspector tab, click “Add Component” and select “New Script” from the options
- Click “Esc” key and observe the result in the opened “New Script” window
Actual result: The "New script" view stays open, “Esc” key is ignored
Expected result: The “Esc” key returns to the previous component list
Reproducible with: 6000.0.1f1, 6000.0.82f1, 6000.3.23f1, 6000.5.10f1, 6000.6.0b10, 6000.7.0a5
Reproducible on: Windows 11 Enterprise (25H2)
Not reproducible on: No other environments tested
Workaround: Click the up arrow key (↑) or down arrow (↓) key and then “Esc” and “Enter” keys do what they should do
Notes: The “Enter” key is also ignored when the “New Script” window is opened