With a keylogger you have 2 problems.
1) the keylogger being instantly identified by anti-virus
2) something more uncommon, but the person might be using keystroke encryption
Doubt you can make anything sophisticated enough to get around the first problem if you have to ask, but it's something to think about.