Keyboard logic to prevent keying to empty spaces