Go to OSX Daily to read How to Add an Escape Key to iPad Keyboard
Need an Escape key on an iPad physical keyboard? If you don’t use the iPad keyboards Caps Lock key for CAPS LOCK, perhaps you’d rather it behave as an Escape key on your iPad?
The iPad Magic Keyboard and Smart Keyboard do not have physical ESC / escape keys, and while there are various options to type Escape on the iPad, nothing really emulates a physical hardware ESC key if you need one for something like vim.
One option is to remap the Globe key to be an ESC key, but a common trick for many users, not only on the iPad platform but elsewhere, is to remap…