Updated code sample to not use deprecated api
Merge pull request #890 from kyleclegg/master

Updated key filter sample code