Thanks for the code, thats exactly what I was looking for, but I need something also. Heres my problem.

I wanna make a visual keyboard program. and im gonna make little buttons and basicaly do the code you gave me. But I can make it sorta like if I press a button (EXAMPLE)

called A and i made it out put A and then I had a Button B (same thing). How do you make it so that it adds it to what i already have. So its not A then B, but AB?

Hope I didn't confuse u, and any other cool helpin' nerds are welcome to help me!