Updated the checkKey(key) functions to change when the user edits a hotkey