Implemented console input from both keyboadr and serial port