Disabling keyboard

hi.
there’s any way to disabling keyboard input? i am working in a kiosk and i need to enable or disable the inputs from keyboard in some points of the application.
thanks