I think you must add a struct of switch for those special keys, like the INT 9/INT 16 do. When you encounter a special key or more, depending upon press or release, change the switch to reflect the change; while if it is not a special key, check the status of switch with the scancode of keys before tell your downstream what key combination should be.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货