virttest.virsh: Add sendkey() API

Signed-off-by: Kyla Zhang <weizhan@redhat.com>
Merge pull request #1416 from autotest/1292

virttest.virsh: Add sendkey() API