Gyrator2 is amazing software that can do this for you.
http://forum.xda-developers.com/showthread.php?t=427805
The HTC keyboard automatically switches to QWERTY in landscape already, so all you really need is to have auto rotation using Gyrator. You could setup a rule that only autorotates in certain apps (Inbox/SMS for example).