TextField (How to get changes in real time)

Hi,everyone.Help me please

Vaadin 12(Java API)

My code is:

textFieldAccountName = new TextField();
              textFieldAccountName.addValueChangeListener(e->{
                        ButtonIcon button = mainInfo.stageBar.leadInfo.btnDis;

                        if(!e.getValue.equals("")) {
                            button.getStyle().set("opacity", "1");
                        }else{
                            button.getStyle().set("opacity", "0.3");
                        }
                    });

But it works when i click the mouse or keys.
How to get changes in real time?

Try with

      textFieldAccountName.setValueChangeMode(ValueChangeMode.EAGER);

Martin Israelsen:
Try with

      textFieldAccountName.setValueChangeMode(ValueChangeMode.EAGER);

Thanks)