Any idea why this might happen? I would usually think that Chrome would be more forgiving with the codes?
$(document).keypress(function(e) { if(e.keyCode
yes this can be achieved by changing onkeypress event to onkeydown. Moreover this issue exists just in case of Internet Explorer when you want to trigger an event on space click.
onkeypress
onkeydown