agent: Fix error handling of READKEY.
* agent/command.c (cmd_readkey): Jump to leave on reading error.