I wrote a small program to illustrate how to do non flickering transparent cursors and custom keys. Check it out. If there's something you don't understand, let me know.

http://public.xcessred.com/stuff.zip