Move prevention of repetitive joypad movements to InputEvent. Fix #521