- make sure query is an observable
- use
valueUpdate="afterkeydown" - use
event: { 'keyup': check }:
Also I’d use console.log if possible as opposed to alert, and log the query so you can make sure the value is updating. 🙂 you also my want to log the event like this
function check(data, event) {
console.log(event);
}
that will tell you the keycode for the key you pressed