Added keyRes parameter to @DefaultXXX annotations

Implements #826.

I am not sure i used the framework as intended, also the coding style may not fit, so please give feedback.