Are you trying to hack someone's account?
You can't keylog it, The keylogger would only get enabled once they have logged on.
Just put a camera up and record em type in the password.
Or make them make an account for you on their computer, enable a keylogger on that account and click switch user and let them log on, maybe that'll work?