Keyboard and mouse/touchpad lock up waking up from suspend mode

I solved the problem by disabling repeat keys function via settings > universal access > typing tab.

Edit: Sorry, I thought that I had solved the problem but it persists. It happened again just now. I wasn't able to login when I resumed the pc from suspend mode. Keyboard and touchpad wasn't working. I had to suspend the pc again via touchscreen and everything working fine now.