Fix spacebar behavior