receiveKeyEventsFlow

Enter raw mode, emit KeyboardEvents until the flow in cancelled, then exit raw mode.