fix spacebar capture