Replaced obsolete KeyboardEvent.DOM_VK_XXX with the value of event.which.

The KeyboardEvent.DOM_VK_XXX properties don’t work on Chrome.