Set key event timestamp