Why not handle the keyPRESSED event in your application and then sendmessage? This will only fire once, when a key is pressed.