Simplified keyCallback