I have a udev rule that does the ESC mapping, but will have to try harder to see if I can make it do that on Linux.