Please see
http://www.freedesktop.org/wiki/Evtest