control: handle key down and up.