Update demo to listen to cut/paste and change keydown to keyup. Fix #1