I want to make something akin to virtual keyboard, capable of sending virtual keypress of a full keyboard including the modifiers and function keys, but I have never done anything similar to this so I don't even know how the input stack works or how to start googling for this to begin with.
I have heard of libinput, but I don't understand how it would be related to what I want to do; is there anything like a ready-made text utility or something that can trigger a keypress?
EDIT
After a little more digging, I think what I am looking for is triggering scancode or keycode. Just need a decent generic library to do that.