[Debian] Stop input from keyboard and mouse

Dear friends,
I need to stop getting input from keyboard and mouse at some specific time like, every day from 6 PM to 7PM likewise.
How can I do this. Kindly guide me to do this.
I need to block the input.

I am using Debian OS.

Are you trying to lock the system console?

The question is simple that I need stop the user from giving input..

No, the question is not that simple. As Jim Mcnamara asked, are you trying to stop the user from using the console terminal not a remote xTerm or other remote login?

You must be more specific if you want a good answer.

If I was going to do this, I would first consider running a cron script that changes the permissions of the I/O devices you want to block at the specified time; and then changes them back again.

Be careful, however and test it first, because you don't want to make a mistake a lock yourself out of your system.

usermod -s /sbin/nologin tom tell cron to do this for all the users also
If the file /etc/nologin exists, login will allow access only root... this is alinux way it may work for AIX