I'm not sure if Delphi supports Windows Hooks, but a Win32 API reference is usually a good thing to have for coders.