Yes indeed, inkey is limited to the size of the string. If you change the sting size you clip inkey. But even more copying the textbox->characters into the input is pointless, as inkey, should start at the first character location and overwrite the whole string.