Spacebar or Enter key is not working