For example if they typed something in the console for the program it would act like they pressed the "a" key.
This is different from this How to react to keypress events in Go?… because that is if some key is pressed then do something mine is if some key is pressed then virtually press another key