Execute JavaScript on a Text Box Entry via the ENTER key on success and failure.

Captivate 2019, Windows 10, HTML5 output only. Have a Text Entry Box with the Enter key as a shortcut. Would like to execute a JavaScript function when the user presses the Enter key. It is possible to do so when the answer is correct (on success), but need to be able to execute it when the answer is incorrect as well. The JavaScript evaluates whether the answer is correct or not and then shows/hides several assets on screen accordingly. Need […]