How to make a letter scroller

Hello. I am trying to make a device where when i press on the letter, it will scroll to the next letter in the alphabet. Does anyone know how to do this other than hard coding every letter? Thanks!
This is what i tried, but it didn’t work.

look at this, it uses a list to keep track of letters

make sure zoom in to look at it, it is small