change to only query on 'enter' keypress