How to disable Keyboard/Trackpad when I go into tablet mode

Hi everyone, I need help with tablet mode on my Toshiba Satellite e45w C4200x. I dual boot windows and when I flip the screen the keyboard and track pad automatically disable themselves. If I flip my screen in manjaro nothing happens the keyboard and track pad are still working. How can I get it to disable when the screen is flipped?