You may try like this.:
jQuery(document).keydown(function(e){ if(e.which === 16) { e.preventDefault(); return; } console.log(e.which); });
jQuery(document).keydown(function(e){ if(e.which === 16) { e.preventDefault(); return; } console.log(e.which); }); seeSee demo.
Use firebugFirebug and check console output.