F2 is the hotkey in Windows, which can help you rename a file or folder. You need to simply select a file or folder, and press F2 (or Fn+F2) to rename it quickly. However, if that stops working, then ...
If the Left Alt key and Windows key are swapped on your Windows 11/10 system, use the solutions provided below to fix this problem. Before you proceed, restart your computer and see if it helps.