Use keyCode instead of deprecated which