X provides the basic components to build GUI environments : drawing and moving windows on the screen and interacting with a mouse or a keyboard . X provides the basic framework , or primitives , for building such GUI environments : drawing and moving windows on the screen and interacting with a mouse and keyboard .