nf/qe mask keys

Feature requested by Sam Nastase
are all those funky indentations are just that (funky) or some tabs sneaked in? ;)