How to perform the ENTER keypress event

Hi.

I’m having problems with a script that I wrote. This script provides some input to the input field and then tries to press ENTER to load the respective data. Here’s the script:

combineSteps
navigate http://localhost:1234
execAndWait document.getElementById(‘new-todo’).value=‘Example’
sendClick id=new-todo
sendKeyPressAndWait id=new-todo ENTER

The thing is it doesn’t perform the ENTER keypress event.
Can someone please help me with this?

Thank you.