add keyboard event with time travelling