I actually want to capture the keydown or keypress event from the active word document from my VB6 application.

I know of some events.

Dim WithEvents AppWord As Word.Application
set AppWord = CreateObject("Word.Application")
AppWord.Documents.Add AppMap & "Blanc.doc"
....

Private Sub AppWord_Documentchange()
msgbox "changed to other document"
end sub

There is allso an open and close/quit document event.
but i don't know about a keydown event. Can someone help.

The documenychange would allso be good if this means when the user changes the active document by typing in it, but here it sadly means just switching from one doc to another
If there is no keydown event for this maybe i should try something else
Like capturing the pressed key with a API call like keyboardstate (allready tried this but didn't work because me VB6 form didn't had the focus while typing in de word doc)

Checking a textbox keydown event from the active document would allso be good if possible from my VB. But this seems more difficult. Allso i create the textboxes at run time not at design time
And it's not een array of textboxes (didn't know how to do that). I create textboxes like TKVeld1026 and the next one gets name TKVeld1027 or is there a better way.

Does anyone know a solution, i got stuck here?