Fix send_key.
Minor fixes.