I got:
$(someTextInputField).keypress(function() { alert($(this).val()); });
Now the alert always returns the value BEFORE the keypress (
Change keypress to keyup:
keypress
keyup
$(someTextInputField).on("keyup", function() { alert($(this).val()); });
keypress is fired when the key is pressed down, keyup is fired when the key is released.