fix window focus race in BaseKeyListenerTest

Bug: 8000119
Change-Id: Ib82a8d93328111b1a369da5724e06e4736e48363
1 file changed