For instance , keyboards and mice are considered input devices of a computer , while monitors and printers are considered output devices of a computer . For instance , a keyboard or a mouse may be an input device for a computer , while monitors and printers are considered output devices for a computer .