Keyboard is not handled properly when used too fast

It is expected that pressing Tab or Enter keys after writing to lookup field will choose the first item resulting from the search although the item list has not been yet loaded. This is already working in grids but was broken in forms.