I got:
$(someTextInputField).keypress(function() {
alert($(this).val());
});
Now the alert always returns the value BEFORE the keypress (
You may want to hook up an onchange event handler instead of using any of the key events.
$(someTextInputField).change(function() {
alert($(this).val());
});
Using Edit > Paste or a Right-Click then Paste will fire a change event, but not a key event. Note some browsers may simulate a key event on a paste (though I don't know of any) but you can't count on that behavior.