fix keyboard listener