Different applications have some have parts of the functionality you describe but
they handle text input differently so you will not find the cross-application utility
you are looking for.
You could write something simple using a basic "sendkeys" type of function but the
effort would be many times greater than the return.