Added Key change functionality.