Miscellaneous Small Fixes for KeyEx

Signed-off-by: Lars Kiesow <lkiesow@uos.de>