Fix keydown event handling leak

Bug: 61337
Change-Id: Iee28a3e19a5a526876fb93900a12844c35b74ecc
(cherry picked from commit dc539cab54221f17bbc97a50b5ee08c1b0202c8a)