Minor fixes to keylogger.