This is probably a really easy one, but how would I be able to press a key and have a series of numbers output in the following way:
For example, if I have [1 2 3 4 5 6 7 8 9 10] in a table, I want "1" to be read first each time I press a certain key, and while holding the key down I want it to count through the rest of the numbers up to 10. Then when it reaches 10 it will stay on 10 for as long as I hold the key down. In other words, I don't want it to get to 10 and then go back to 1 while I'm holding it down. I only want it to go back to 1 when I release it and press it again.
I have used tables to read through numbers, but in all other cases I've wanted them to read through and repeat. I also know how to set up the keys to work, so I don't really need that to be explained.