Simulate user keyboard DOM events in tests.