changed the keyevents