simple hack for recording and playing back linux input events