keybaord in main py thread