update inputevent