Navbar: improved custom/cursor key layout determination logic
Fixes key shifting on Nexus7 and other non-phone UI devices