If enter is pressed before max limit len resets and line breaks

However, I have just realised that by counting keystrokes to get the
value of len (instead of getting the length of #texttype) when you
press delete it adds to the value of len still even though the
functionality is still disabled.