For software keyloggers (ones running on your computer), you can try
Process Monitor. It'll help you detect something running that shouldn't be.
It's practically impossible to detect hardware keyloggers unless you give the computer the good ol' look down.