I need something "behind-the-scenes" probably. I have a form with a lot of visual components. Among these components are tedits and tbitbtns. What I want to do is, inside an onExit event handler, to determine why the tedit is loosing focus, is it because the user pressed the tab/enter key (and if so which key did he/she press), did he/she click on another component with the mouse, or did he/she use an accelerator key (and if so, what combination of accelerator keys). This should be accomplished without having to react to every single keypress, mouseup etc for all components and the form itself.
In a perfect world there would be a call like GetLastUserAction or something, but... :-)