Is it possible to add eventhandler to document object itself? I think it should be done to document.body, etc.
Yes, it is possible, but as I wrote above, in the event handler of the components on the form, there is a call to
AEvent.StopPropagation that stops the transmission of messages.
The global document handler does not receive these messages.