I used the keydown event and set keycode=0, just as u had said and it worked fine. Thanx a lot.