fix spacebar not working in firefox