flushkb does not work. I can't even get it to clear if I call another kix session. the only way I have been able to fix it is by putting this command before every gets statement if I have used a get statement.

$rc = sendkeys("{BACKSPACE}")