The input value cannot be achieved with getValue() method

Please replace line42-50 with the following code on Snippet

form.events.on("keydown", function(event, name, id) {
    console.log(event)
   if (event.key=="Enter"){
       dhx.awaitRedraw().then(function(){
           alert(form.getItem("name").getValue());
       })

   }
});

Try to fill the Name in the input control, then click the keyboard Enter button. We can only get blank, ie. getValue() method gets nothing, while _value property gets something.
I get the same result when .getValue() inside or outside the awaitRedraw().

New value applies to the form control only on blurring out of the control (it signalizes that the edit process was finished), so please, try to call blur() method in the keyDown event before getting the control’s value:

Like:
https://snippet.dhtmlx.com/7aca8sfp

Now it works, thanks