update demo to use keyup instead of enter