keyboard, next and prev Button

changed the keyboard system and completed the next and prev button
functions