The easiest way is to simply install the keylogger on your own machine, then send the log file to the other machine as you would any other file.
If you're asking about installing the keylogger onto a machine that isn't in front of you, I think you should consult first with someone who could tell you whether that's legal.