keyboard func fix