Fix issue with hardware keys KEY ACTION comparisons.

Menu unlock now works properly.

Patchset 2: Switched detection of onscreen keyboard input to KeyCharacterMap.VIRTUAL_KEYBOARD

Change-Id: I092258fc20789a12123e319ed2dca25c55bb9f0c

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
Merge branch 'jb-mr1' of git://github.com/Root-Box/frameworks_base into RootBox