prevents spacebar