Fix cursor keys
Store uppercase flag in bit 7 for more efficient checks
Add the uppercase flag from the CBM-II port to the PET version
Uppercase mode can now be checked more efficiently on the PET
and both versions can share the same put_char implementation.