Add support for keybaord and mouse.