Not sure if you've already tried this, but setkeycodes might be worth looking into: https://linux.die.net/man/8/setkeycodes
Also, here's a potentially relevant superuser question: http://superuser.com/questions/633488/how-to-disable-re-map-keyboard-keys-in-the-kernel/974591
Maybe you can re-map cmd to ctrl with this?