Added code for KEvent and KElectron