How do i use a variable to press a key with robot class

Yes i am using it.

I want to emulate a keyboard press to make it work in another app