It's doing some really weird things (exiting on ESC?), but I think it actually means things are starting to work!
try remove the line #include <default.c> That file defines standard keys, like quitting on esc and f10, changing screen res and quicksave and quickload, which might overwrite what you have set in c-script.