Implemented HieldAlgorthm for button presses