Add isNumberKey function.