Is the problem in the code or in the OLED screen?

By putting a terminator after each character as it is entered.

InputArray[InputArrayPos++] = charselect;
InputArray[InputArrayPos] = '\0';

(Of course, you've already ensured there's space for both...)