Hard reset, or reflash you rom, or a different rom (sometimes flashin stock fixes random issues like this) and if keyboard still gives issues check this tutoriall for keyboard fixes
https://www.wckediden.com/showthread...eyboard+issues
... couple of options u can try... esp alternative fix # 1 at the bottom