Coding lift

Im trying to make a code where I can press the up & down buttons on the controller and the height of my double reverse 4 bar will move to different levels. However I don’t want this to restrict my ability to move freely to make fine adjustments. Is thi a good ide? anybody know a good integer system to make? need help.