So you mean it'd log the keys to the flash drive as long it is inserted, then when it's removed it stops logging, and disappears from the pc?
I guess that can be done, won't be too hard. Just learn a little programming, it can easily be done. That's better than asking here for someone to just give it to you, because most won't help you if it's for something that is almost definately for a malicious purpose.