Support remote control

1. add remote contorl
2. fix quit issue when application is paused.

Signed-off-by: Jianmin Zhou <toandrew@infthink.com>