Possible to remap `Esc` key to `Caps Lock` on a bluetooth keyboard Samsung Galaxy Note 9 with any old bluetooth keyboard. How do I remap the Esc key to Caps Lock? And remap the Caps Lock key to Esc. Swap them basically.

I need this to make it easier to use Vim on Android. I prefer not to root.
In Android 4.0 you could do this easy, you would need root permissions though. You most likely still can with root. Just checked can do easy with root. /System/usr/keylayout there are a couple files in there with keyboard layouts that you can edit with root permission. You can veiw but not edit in fx file manager, there are other files that control the same types of things in there.