So, just to bring it back to what you want to do, you would have:
store(output2) ‘xxxx’ c note that all four of the outputs are the same
+ any(keystroke) > index(output1, 1) index(output2,1)
Then when you type “k” the output will be “kx”. When you type “G” you would get “Gx”
I could see this being useful when you have combining characters that you want to output as the second item.