Support key gesture detection for stylus tail button in SysUI

Here, we add gesture detection logic for the stylus tail button in
SysUI.

The notes task will only be shown immediately on the UP event of the
first key press of a key gesture. A long press will not do anything for
now. If there is a multi-press (e.g. double-press, triple-press), only
the first press will react to the event.

Bug: 298056902
Test: manual with stylus
Test: atest NoteTaskInitializerTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:515a1625d4948f2fdb1ef6e966fe4469b0ed4d9f)
Merged-In: I90391f411d84ec5c749bb4d8cdefd7e610539e6e
Change-Id: I90391f411d84ec5c749bb4d8cdefd7e610539e6e
2 files changed