drive a fire tv stick with a raspberry pi 3

the amazon firetv stick remote control works in bluetooth 4.1.
how to copy the remote control of firestick with raspberry pi 3?
Thank you for help