Gui not working

Whenever i use the gui to play my project and input a word that isnt in the dictionary of the file i select it just makes the characters red and wont let me input anymore words. Is this an error from my code or is this how its supposed to work?

This is the expected behavior implemented in the GUI.
You can use backspace to erase characters in order to enter a valid word.