Try the following:
$('#message').keyup(function(e){
if(e.keyCode == 13){
}
});
I found that the keypress implementation is not so browser friendly. Just a thought.
Edit : Now I remember why this does not work in IE8. The enter key (key code 13) is considered a “Special key” (as well as other keys, such as the arrow keys on the keyboard). IE does NOT fire the Special Keys key event, so I had to use keyup.
You can find more information here: http://www.quirksmode.org/dom/events/keys.html
" "