I'm quite new to this. i think it is possible to have a keylogger that sends to a webserver in a form of text file.
I saw this https://github.com/samratashok/nishang/blob/master/Gather/Keylogger.ps1 and it has a URL parameter but i dont understand it yet