Bugfix: Don't close the key mapper if no key was found.