```python
if ('A' <= key <= 'z') or key == ' ':