You can find a few Keyloggers on planet source code, you just have to modify them to take all the keys into one string. Then you simply search that keylogging string for whatever word(s) you want...