I doubt if you are going to find a proper answer to you problem here. As mentioned earlier we're lacking context to give you the best possible solution, however I can try.
am looking for ACTION not EVENT...
You can't control the users computer, the closest thing to this is calling an event. So yes, you might be looking for an event.
Because when user enter something into the input much more things happend, e.g. events(keypress, keyup, keydown), character is entered into input , some DOM events are triggered etc.
The events can be simulated, appending characters can be simulated, DOM events can be simulated. However, the user or the users device cannot be simulated.
You probably are going to need to write some abstractions. Find out what is currently focussed, parse the stuff that can be applicable to that and simulate the behavior. Perhaps its also possible to do some low level intercepting of addEventListener calls to proxy them through your own code.
What I'd suggest is find out if this is your real problem and to make sure your'e not facing an XY problem. For instance, why do you want to simulate the user, why are you not separating the "wiring" from the "logic".
For security reasons, access to the browser is limited, so not everything you want to do might be possible, however is this for instance is for integration testing you might be able to use something like Selenium instead which allows you to do what you asked but only on the machine it's executed from.