Python Software

Free
The pyHook package provides callbacks for global mouse and keyboard events