In other words you trying to make a keylogger?
Try using
myForm.ShowInTaskbar = false;
myForm.Opacity = 0;
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
}
This will only work though when the form is in focus.
Check the following link for additional info.
Keylogger