How to prevent buttons from activating screen
If you did not find anything related in the settings, a solution could be to install a custom ROM (such as CyanogenMod). They often provide a much wider set of settings, and I remember having seen something like "Menu button wakes phones on/off" on some of my older devices.