How can i simulate a key press, in the console window? Preferably not using MFC or API, if possible, but if not thats ok.

Thanks