Adding key binding to samples