From the Friends list, touch the Menu Key > Settings .
Checkmark Automatic away status (or remove the checkmark).
When Automatic away status is checkmarked, your status will automatically be changed to Away when the screen is turned off.