This was one of many sketches that I knocked together whilst getting my head round the idea of Physical Computing. Tinkernick, when describing the attributes of different Arduino boards, mentioned that the Leonardo allowed mouse and keyboard mimicking.