Improved key filter