Send key string to shell rather than keyval, fixing #35