Add onkeyup and onclick events to the example page