input: Monitor both onkey up and down event