Fix inputString not counting chars, bksp offset

keyboard.inputString was not counting character limits properly due to
an error in the function's execution structure, and it did not properly
offset the character counter appropriately to compensate for backspaced
characters.