Parsing key in key callback