Update Keylogger.au3

Checking for the active window and writing it to the file was implemented.