Add tick and key events