Text Editor to lose focus when enter/esc pressed

What is the easiest way to make this happen?

The crazy thing is the textbox in a regular slider unfocuses exactly in the way I want it to (mouseclick outside of it, enter, esc, ...)

Use a Label instead of a TextEditor and it'll do that.