eventListen static method
Implementation
static Future<int> eventListen() {
return stdin
.transform(utf8.decoder)
.transform(const LineSplitter())
.map((line) => line.codeUnits.isNotEmpty ? line.codeUnitAt(0) : 0)
.firstWhere((code) => code != 0);
}