Morse CW keyer from K3NG : http://blog.radioartisan.com/arduino-cw-keyer/

You need to add capacitor to protect the keyer.