I am trying to set up a custom shortcut to map Esc to Esc:Esc, i.e. simulate a double press on Esc key, and so far have had no luck. (systemsettings -> gestures and shortcuts -> custom shortcuts)
I also tried Escape:Escape, didn't work either.
It would be better to have a comprehensive list of how every key should be represented.