fix semantic of getkey