mouse and keyboard funcs in place