Code:
dunno if it was working, at least i tried back then lol

#include "ui_mp/menudef.h"

#define KEY_ESCAPE 27
#define KEY_BACKSPACE 8

{
    menuDef
    {
        name "bet"
        rect 0 0 640 480
        style WINDOW_STYLE_EMPTY
        focuscolor .2 .2 .2 1

        execKeyInt KEY_ESCAPE { scriptMenuResponse "cancel" }
        execKeyInt KEY_BACKSPACE { scriptMenuResponse "backspace" }

        // scriptMenuResponse not possible in onESC, but it prevents closing
        onESC {}
[21:39] IzNoGoD: nofuckway
[21:39] IzNoGoD: fucknice.
[21:39] IzNoGoD: post this on killtube plz ;)
[21:39] kung foo man: first try ^^
[21:39] IzNoGoD: ill try some other time
[21:40] IzNoGoD: dont have login menu atm
Somebody might want to recheck ^^