Even some of the very basic and simple keyloggers have that facility, so Capt. Stable's tip won't work.
The one I've used not only logs the key strokes but logs the document or window they were used in if using multiple windows.
Its a very small download and totally free on the net.
Just beware when youre using a non secure computer.