added keypress events to demo