Undo Only Works Once If You Swap Command and Control Keys

I normally use a Mac, but I run Unreal on my PC so I use a program (PowerToys) to swap the control and command keys around so that it’s easier for me to use. This work perfectly fine for every other program on my computer, but Unreal for some reason just doesn’t like this. When I swap the keys, I can only hit the undo button once before it stops working. If I go up to the menu bar and hit undo it works fine. But the keyboard shortcut barely works at all. Is there a way to fix this? I have no idea why this would even be an issue.