virttest.virsh: Add sendkey() API

Remake of PR #1292, virt-test part.

Signed-off-by: Kyla Zhang <weizhan@redhat.com>