add console event traps

Signed-off-by: Bob Liu <lliubbo@gmail.com>