If there's no need to be concerned that a user might select a different window or select a key while keys are being sent to your app, you can use SendKeys.

Shell to the app and then use Sendkeys.
If you are concerned that the user might select another window while your app is running or that they might hit keys, you'll have to use the API.

Wade