Hello
To Disable the Handwriting option in Windows virtual Keyboard, perform the next steps:
1 Open Settings (Win+I).
2 Click/tap on Bluetooth & devices on the left side, and click/tap on Pen & Windows Ink on the right side.
3 Click/tap on Use your handwriting to enter text to expand it open. (see screenshot below step 4)
4 Select When a physical keyboard isn't attached (default - enable) or Never (disable) for what you want in the When I tap a text field with my pen, use the handwriting panel or touch keyboard to input text drop menu.
Or edit the registry at:
Path: HKEY_CURRENT_USER\Software\Microsoft\TabletTip\1.7
Key: EnableDesktopModePenAutoInvoke
Value: 0
--If the reply is helpful, please Upvote and Accept as answer--