Hi DWFCLK,
Thank you for participating in the Apple Support Communities. We understand there is a delay or lag when using the Magic Keyboard with your iPad Pro, and we'd like to assist. Does this happen with all apps you type in or only specific ones? If it's specific apps, these steps may help:
If an app on your iPhone or iPad stops responding, closes unexpectedly, or won’t open
Are you running the latest version of iPadOS? If not, we recommend updating to see if the issue persists.
Update your iPhone, iPad, or iPod touch
Do you have plenty of free space on your iPad? If not, this can sometimes cause performance issues. This article can help with optimizing your storage space if needed:
How to check the storage on your iPhone, iPad, and iPod touch
Take care.