Fix issues with keyboard input when running the examples on Windows.
- Problem: asyncio only has partial support for add_reader on Windows, which caused examples to crash
- Solution: keyboard input is now handled in a separate thread under Windows.
Thanks to @MarkSttc and @HufflyCodes for flagging the issue, and to @WillPowellUk for suggesting using threading