add mouse clicks and key presses