Sorry for the trouble, I can understand how frustrating this could be. Please share the version of XD and OS build which you're using? meanwhile, let me see if have other reports for this issue kind of issue.
Hey, in addition to what Atul asked - when you say you can't edit anything - is it just that you can't type? Or are you not able to select anything as well - create a rectangle for example?
There's been a bug with the text editing tool you can try Alt+Tab when it happens, and then switch back to Xd for a temporary fix. If you can't edit anything, however, it might be a driver issue or something else, which we should be able to figure out when you share more details about your system, as Atul requested.