A little about me before I get on to posting the code. I'm 19, graduated from HS 2 years ago and started college but had to move so now I'm not in school and I haven't programmed in 3 years. Anyway now that you're all bored here's the code.
Spoiler
I'll explain the error I'm having but putting the script on an in-game computer might help more. I guess my syntax is all okay since I can run the program, but when I try to give it input, the first time i press a button it's okay, it outputs normally, but when you hit another button it will print out again the last letter you typed and the new letter. I really just can't figure it out. Hopefully some fresh eyes will be able to help. Thanks in advance, guys.
EDIT: I think I messed up the commenting, sorry. I'll figure it out and fix it right away.












