Finished keylogger functionality