If the program has not been built with specific features that allow its users to do this, I don’t think you actually can. You could use software that reacts to different shortcuts by sending one of the shortcuts the software you are talking about does know, but that is not really what you’re asking, I suspect? I had a similar problem after purchasing https://www.warrington-worldwide.co.uk/2022/06/13/what-is-the-silicone-cover-for-on-keyboard/ on my MacBook. I chose a slightly wrong silicone pad. I just confused my laptop model with another model. But it's not so scary. I also had to change the assignment of various keys in order to use the laptop normally. I hope I helped you.