Use jquery for key events

For better browser compatibility e.which