If you know there's a keylogger, then you could just type a bunch of letters/numbers, then copy/paste out all the unnecessary stuff, thus getting what you want without anyone really knowing what you typed. They'll see a bunch of letters, then a couple backspaces.
I dunno, that's just what I think of...