Use device hardware keys to determine if there is a menu button

Change-Id: I65fdf9dfb79234060181d6ddb514d6c994bfae44