Sometimes key returns capital letter

Making a textbox, and using

a  = char(key);

to return a key. Most of the time it works fine but sometimes it will randomly capitalize a letter, any idea what would cause this?

What?

Isn’t key already a char?!

Yes you’re right!! (must post 20 chars)…