add reply method and fix key binding