Added support for TAB key when the maxlength is reached