How can i replace a key?

I'm trying to replace a key in my numeric pad, in this case use the (.) as a (cmd). But isnt easy, anyone know if this is possible?

Thanks