You can use sendkeys, if you want to hit any key from keyboard. Try the below code.
sendkeys
Set oWscript = CreateObject("WScript.Shell") oWscript.sendkeys"{F9}"