I did some testing and it works for me, same version same compiler. I found some posts online that suggest using the VM compiler, which might fix it for you. Or maybe you could try updating your Visual Studio version, I tested it with the 2022 Community Edition.
Viewing post in Menu and Input System for GameMaker comments
I forgot to mention, but this was when clicking on settings and then controls. That was working for you? Thanks for the reply I will look to see what VS I have.
EDIT: I did need to update VS (now ver 17.2.6), but still same error. I'm now going to just try VS 2019 Community.
EDIT 2: Yeah, not sure what is going on. Neither VS 2019 or 2022 solved it. Still got same error for both. I've ensured I cleaned before each build. I don't know. I guess I'll try a full reinstall of everything. I did a full reinstall of everything and that changed nothing.