Fixed detection of delete key on keypress

The delete key has a e.keyCode of 46, but e.which is 0.