rem: switch (e.which) 
add: switch (e.keyCode) 
context: function onInputKeyUp (e){        switch (e.which)    {                case 13: /* CR */            if (e.target.id != "input")            {                dd ("** KeyUp event came from the wrong place, faking it.");                dd ("** e.target (" + e.target + ", '" + e.target.id + "') " +                    " is of type '" + typeof e.target + "'");                e = new Object();                e.target = document.getElementById ("input");            }            e.line = e.target.value;            onInputCompleteLine (e);            break;        case 38: /* up */            if (client.lastHistoryReferenced < client.inputHistory.length - 1)                e.target.value =                    client.inputHistory[++client.lastHistoryReferenced];            break;        case 40: /* down */            if (client.lastHistoryReferenced > 0)                e.target.value =                    client.inputHistory[--client.lastHistoryReferenced];            else            {                client.lastHistoryReferenced = -1;                e.target.value = client.incompleteLine;            }                        break;        default:            client.incompleteLine = e.target.value;                }}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/c0477a0d44411244783acaf710fce9a8bcb76ae6/test3-handlers.js/clean/xul/tests/test3-handlers.js