The question that I have is what do you suggest to temporarily map a key to another?
I want to temporarily map say M key to N key. I used _IsPressed() to see if M is pressed and then send N key. The issue was the N key would have been sent when M key was pressed and Windows didn't like that. So I added another _IsPressed() to check and send N key after M key was released. This resolved the issue with Windows. Now the problem is it doesn't feel well that the N key is sent on releasing M key rather than pressing M key.