get key from stdin