Your post is a bit light on detail, but i'll offer the following. Assuming that you are using a microcontroller, you can easily craft software to only register one keypress when a button is held down. On one of my systems I use this feature. For instance, my board enters a debug mode if i hold the button longer than 3 seconds or so, but just operates normally otherwise.