@mirroronthewall Yes, this is surprisingly useful, as it means you don't always have to whip out a hardware keyboard, which defeats the point of the small form factor of a phone.
Missing support for modifier keys is a big issue when using GUI apps in Libertine, as touch-to-mouse conversion often doesn't behave as it should and can get you 'stuck', so a fallback to keyboard shortcuts is just as necessary there as it may be useful in general: actually, your idea of creating macros for anything seems to solve many problems (including mine) at once, so congrats - now we just need to figure out how!
The closest I've found is Ambot Installer: Hacks and Mods, although I need to set up a persistent amd64 QEMU instance on my arm64 laptop before I can allow myself to experiment with it freely (it's the only way I got the installer working). Other tools may be available but I have not been able to surface them yet, I will update this thread as I learn more about the issue and potential solutions.
[UPDATE]
Here is a list of interesting posts related to this problem, which may be a good starting point for building a bridge towards the solution: These are previous conversations on the repos which appear to have been abbandoned:
https://github.com/ubports/keyboard-component/issues/96
gitlab.com/ubports/apps/terminal-app/-/issues/78
https://gitlab.com/ubports/development/core/lomiri-keyboard/-/issues/96
Instead, here are some useful links related to Malakiboard, which should be a good foundation to build macro functionality on:
https://github.com/kugiigi/jerk-click
https://github.com/kugiigi/jerk-installer
https://github.com/kugiigi/jerk-packages