add copy-line fun and keys