The behavior is consistent with the mouse pointer being intentionally hidden while typing by Windows’ “Mouse Vanish” feature, which makes it look as if the cursor is going under the text.
When Mouse Vanish is enabled, the pointer disappears whenever typing starts and reappears as soon as the mouse is moved. This is by design so that the pointer does not obscure text in documents such as Word.
To address it, change the Mouse Vanish setting in Windows using the SystemParametersInfo API flags SPI_GETMOUSEVANISH and SPI_SETMOUSEVANISH, or use the corresponding mouse/pointer visibility settings exposed by Windows (depending on version and UI) to turn off the feature if a constantly visible pointer is preferred.
References: