feature(key_filter.js): Implement the keyFilter
add tests
add docs