keypress + query working