checking KeyCode doesn't work

checking KeyCode doesn't work

yup, the working code is :
$(document).keydown(function(event) {

and I found out that it's not working on Firefox only on IE and Google Chrome...