When the Enter key is pressed, the OnTextFormatError event occurs if characters that do not match the text format are entered. This is only valid when the TextFormat property "Input Restriction Type" is "ENTER". This can be used to display a unique warning message when characters that do not match the text format are entered.