Escape key making a box in textfield

is there some way to keep the pressing the escape key from adding that ascii box in the textfield? or do i have to watch every keypress and remove it when it’s seen?

-Echo