repaired keyboard trigger event