DFPlayer Control

I want to control the output of dfplayer. if i press 1 on the keypad, dfplayer will play files 1. if i press the 2 key on the keypad, dfplayer will play the file 2. What should I do? does anyone have an example of the program?