Why is onKeyPress always one letter behind?

Is there any way to work around it?

Actual text on input is: LOVE

export function input1_keyPress(event) {
let value =  $w('#input1').value; //Returns: LOV
}

You need to add a slight delay to it, see this post here which explains how to code it.

https://www.wix.com/corvid/forum/corvid-tips-and-updates/give-the-textinput-onkeypress-function-some-time