Dude if you gonna ask for help try to make yourself clear. What program for what purpuse and details as much as you can give.
Programing is about details, we’re not mind readers.
well if “YOU” want to create the program, then google how to programaticly send virtual key strokes. You can send the key strokes to a designated app or just to whatever has the focus. I am not going to write the code for you, but will answer spacific questions you may have. If the question is too vage, I may just send you to google, but this should be your learning project. Dont be a “Gerber Coder”. We will not spoon feed!