Implements icreasing and decreasing value by up/down keys