Simulating typing and inputs