BGUI modify text_input widget
I couldn't fix the BGUI to solve the problem, but I found a workaround for this.

Set a Left Mouse Button Sensor and connect it to a python controller that activates a callback function.

if not own['sys'].layout.input._active == 1:
        own['sys'].layout.input.text = own['sys'].layout.input.text