Custom Keypad Help..

Hi,
I designed a custom keypad which is used to control a motor speed. The keypad consists of UP and DOWN button for RPM and TIME respectively. It also has a START and STOP button. I am looking for the entire arduino forum if anyone has done it as an example. However, I couldn't find such example. My problem is that how to set RPM and TIME using interrupt and save it into memory, then when the START button is pressed the motor start to run and STOP when the stop button is pressed. I would appreciate if anyone could help me with this.
Thank you so much.