Q: Autocomplete on enter (but NOT in auto-select) I have a simple input field

and on enter I want to submit it (the form that it is in). I am using jQuery but not any autoComplete extension, so it's just the default browser one:
$('#searchfield')
.keypress(function(event) {
        var keycode;
        if (window.event)
            keycode = window.event.keyCode;
        else if (event)
            keycode = event.which;
        else
            return true;

        if (keycode == 13)
            $('#searchForm').submit();
});

Problem with this solution:
When somebody (in FF3) starts typing (say "stackov"), then goes arrow-down for the offered choice and hits enter, the form is sent off, albeit searching for "stackov", not for the chosen "stackoverflow".
Alternatively I tried
$('#searchfield')
.change( function() {
   $('#singleSearch').trigger('click');
})

That got me correct picking of "stackoverflow", but now any leaving of the field (as in blur(), after tapping some letters for example) involuntarily sent it off.
Any (ideally tested;) advice on this?

A: Hmm, all I can say is, that a small delay to allow 'digest' of auto-complete before submit
fixes the issue:
if ((event.which && event.which == 13) || (event.keyCode && event.keyCode == 13)) {
    setTimeout( function() {
        $('#searchForm').submit(); 
    } , 30 );
};

