The event keypresssimply does not fire when Tab is pressed - this also explains why there is no warning, no matter what the default warning can prevent.
Changing the code to use keydownallows you to catch the tab and prevents the default focus from changing (in Chrome 1 anyway).
$("#input").bind("keydown", function(event) {
if(event.which == 9) {
event.preventDefault();
}
});
1 Chrome 35 jQuery 1.6-2.1; KO 3.0.