1. Modefy parser() to parser(U8 *cmd).
2. Add the function of key-up and key-down to find history input command, but not complete.

Signed-off-by: Shanjin Yang <sjyang@credosemi.com>