Arduino serial port

I wanted to make a Arduino morse code machine. Basically when you type in a word it should convert it to morse code and blink a LED according to it.

I am stuck with how when I type a word in the serial monitor the arduino should take character by character and process it(it should also identify spaces).

Please give the explanation with a example.

Serial input basics.