One other thing. While the tilda represents the enter key with the SendKeys method of the WScript.Shell object, it, apparently has no meaning with keybd_event other than the F14 key.
So the question arises: Are you trying to send an enter key or a tilda?
George
Ubi caritas et amor, deus ibi est