If anyone is looking for how to do these kind of injections to help player UX or solve other things its very easy with the new enhanced input system.
same can be done with c++ extensions.