Here is a small very simle cw interface for rs-232 port.
I took the description from help file i logger32 which is one of the logging softwares I use. I will not post schematics here since I dont have permission from the writer.
Its used on the Icom IC-703 and the computer i use for remote operation. It gives me the possibility to operate cw via keyboard from work.