I see the problem coming from the delay between the keys release and the M and the Enter. I bet the timing gets thrown off after going thru the network connection.
How about using SendKeys in a script on the server? Then just telnet in and execute the SendKeys script.