Starting to automize switch between serial mode and keyboard mode