Im working with a kiosk software, and it can easly be exited with the escape key. Theres no way to disable this behaviour, why I would want to simply disable the escape key completely.
I tried with executing:
xmodmap -e "keycode 9 ="
from .Xsession, but that does not help. (Im sure that .Xsession runs, because there is other commands in .Xsession which are run correctly).