Create robot.TypeRobot interface and implement it with type() and erase().