Add support for newer devices without the hardware Menu button.
Remove unused code.