Can someone please tell me what the code is for a keystroke?

eg I was following a VB 6 tutorial on a program and it had this code in it:

SendKeys Text1.Text

it is supposed to type the text into the specified window of whatever text is in Text1 but I am assuming the SendKeys code has changed since VB 6 because it comes up an error now. Can some please post the VB 2005 code for the same axction?