Wire up key events.