I found the solution to this issue which was happening for me and I didn't have to reinstall windows.
Step 1: Go to the ' Windows' folder on your C drive or whichever drive you installed your OS on.
Step 2: Go to 'System32' and find a file named 'ctfmon.exe'
Step 3: Right click and pin it to start menu.
This fixed my issue and now im able to work with xd with no issues.
NOTE: To permanently fix this issue, you should also add an entry of this program to startup so that it can start itself with Windows. To add the ctfmon.exe app to startup, follow these steps:
1. Press "WIN+R" key combination to launch RUN dialog box then type regedit and press Enter. It'll open Registry Editor.
2. Now go to following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
3. In right-side pane, create a new String with the name ctfmon and set its value to C:\Windows\System32\ctfmon.exe
4. Close Registry Editor and restart your system. After reboot, the app will keep running in background and you'll no longer face this annoying keyboard input problem in Windows 10.