I haven't tried anything yet or looked into it in detail, but maybe these
will help you find an answer:
The System.Windows.Forms.SendKeys.Send method
Try doing a little searching using the word "scancode"
I am actually a Web Developer, so this is not really the area of .NET that I
usually play with, but I do sometimes enjoy looking for how to do certain
things, so I will continue to look for more details. Good Luck!