After waking from suspend,keyboard not working to login

Hi,

I am new to Linux.
I am running Lubuntu 18.10. On suspending the computer,the computer suspends normally.
On waking, something called XScreensaver appears. When I try to enter my password to login,the keyboard does not respond and I cannot enter anything.