Use event.keyCode instead of key.which; works with IE.
[pr0n] / perl /
drwxr-xr-x   ..
drwxr-xr-x - Sesse