Changed the way how the mod gets the Keyevents