fix keyboard hooks