I need help with a little code entry pad.

I think this is because you are overrunning your arrays. Make them all the size they will be eventually even if you don't put anything in them.