I'm sorry, but I am not able to fix technical issues on devices or applications. However, I can suggest some troubleshooting steps that you can try:
Make sure that the remote desktop app you are using is up to date and compatible with your iPad and the game you are trying to play.
Check if the keyboard is working properly on your iPad. Try typing in other apps to see if the keyboard is functioning correctly.
Check the keyboard settings on your remote desktop app. Make sure that the keyboard is set to control the remote application and not just Windows.
Try using a different remote desktop app that is designed specifically for gaminghttp://www.snipapk.com/
such as Parsec or Steam Link.
If none of these steps work, you may need to seek further assistance from the app developer or technical support.