use timer to simulate input