You could have a look at the SendKeys function.
If you want to do it with API calls then I would recommend you download and install API-Guide its free. Keith