don't collect time of key events when it isn't needed