Cross-platform solution for simulating keyboard events.