Is faking keyboard input possible?

not sure this is what you want. but try this