.keydown function working in IE/Chrome/Firefox

Corrected the .keydown function to work in the browsers.