'how to restrict users from pressing keyboard buttons in win forms

I am making a winforms app for a public kiosk,so the users need to sign in to use the pc. but i don't know how can i block the users from pressing keyboard keys that will get the ability for the users to use the pc without login,for example by pressing windows + alt and creating a new desktop or other ways,any help will be appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source