Fixed wrong data sent in InputEvent