EscapeScreen
Since Minecraft version 1.19.3 and above, developers have removed the ability to use "virtual" keyboard commands. Due to this change, reassigning the Escape key to other buttons (such as Caps Lock) has stopped working correctly.
This modification offers a simple solution to this problem. It adds an additional Escape key to the game that can be configured to any button convenient for you. Currently, this is the only working way to bypass the limitation without requiring deep intervention into the game's source code.