How do I create and use a keyboard hook to trigger VBA macros?
This is related to the questions "How do I trigger a macro when someone types" or "Is there a typing event in VBA for MS Word". The answer has generally been you need to create a winAPI keyboard hook and use it to trigger your macro - but none of the answers I could find actually told us HOW to create the hook and none of the example code I could find would work. Most of the google results I could find on this topic lead to 404's or moved articles.
Edit: The end goal is to be able to fire an event any time the document body changes, so run a function any time a single letter key is pressed, and to use the number keys 0 to 9 as hotkeys without using Ctrl, Alt, or any modifier keys.
Could someone who has a better grasp of VBA keyboard hooks please post an example of a macro function that is triggered by any keypress? Or by pressing particular keys?