I am trying to figure out the proper way to handle this. Basically what I want is when a user presses the c key, I want javascript to simulate that after the c key is pressed, a string of other keys are also pressed. So for example the user presses the c key, and then typed would be cool@gmail.com. c being the key they pressed, and ool@gmail.com being keys that were pressed via javascript.
What would be the best way to do this?