Fixed the key bug.