modify value on arrow up or down (keyboard)