fix keyboard space toggle