Changed the way how the mods gets the Keyevents