Nativehook library

How can I captchure a single keystrocke and then make the code “press” the button from te keystrocke at a later date.

I am not asking for a KeyLogger.