Using an optic sensor and a scanning keyboard emulator to facilitate writing by persons with pervasive motor disabilities