Actually it gives you enough info

that's the first hit on google. I've never really worked with C# only a few small programs and even I can see at this page what it does you'll need to give a string as parameter and it'll send to the focused window so if you got your browser selected it'll send that key to the browser if you got another window selected it'll send it to that window.
so with:
Code:
SendKeys.Send("{ENTER}");
you'll send a enter.
you can't use it in the background to it has limitations.