Add null check in key event handling.

Bug: 30866905
Change-Id: I4bc4c984026d7d2be594b816e3d6de60410970ef
1 file changed