Text modification using buttons help needed

Hi all, long time since ive posted here. Any way, my problem is this. I have a dynamic text field with space for only one character. The text field id embedded with a space and the 26 uppercase letters A-Z. The text field is intiated being empty. I have two buttons, and up and a down. When i press on the up button, i want the value in the text to be incremented by 1, for example, if it is a space, it should increment to an “A”, if it is a “P” it should be incremented to a “Q”, and if it is a “Z” it should be incremented so it goes back to being a space. I have managed to do this with a bunch of 27 if else statements, but surely there must be a way of simply incrementing the value in the text field?? The problem is i have 11 of these text fields all being modified from the one set of buttons, so using if else statements would take up about 2500 lines of code for 4 buttons, not very efficient, any help would be great guys. Cheers!