add device character to input callback

copied the bit from ScreenTextEntry that turns a keyboard input into a
character to append so input callback functions can be used instead of
STE.