Fixing Key Code