added debugging statments to the keylogger