Proper key handling.