Change tick event to key event.

Coherent description for the first code example in 'Join Patterns'.