refactor func key events, add user func keys
add events for bsfilter func keys
Merge branch 'cleanup_func_keys'