osascript -e "tell application \"System Events\" to keystroke \"whatever\""
osascript -e "tell application \"Safari\" to activate" -e "tell application \"System Events\" to keystroke \"c\" using {command down}"
(and neither is delay precision guarantees, which might be important for some key sequences)