//these two are the same
sendKey("\r");
sendKey(13);
//these two are the same
sendKey(" ");
sendKey(32);
//these two are the same
sendKey("w");
sendKey(139);
//pass a numeric keycode or a string
//if a string, the first character is converted to a keycode
function sendKey(code)
{
var skel = "SimKey(#);"
if (typeof code == "string")
code = code.charCodeAt(0);
var cmd = skel.replace(/#/,code);
web.Execute( cmd );
}