Use keyevents instead of tap