Legacy touchscreen: Fix B key issue

Patchset 2: Clean code

Change-Id: I4c0bcb7f1cea0744ab983c87167af0bb9a472859
Merge "Legacy touchscreen: Fix B key issue" into jb4.3