How to change an input key event via construction script

I have a light blueprint that allows me to turn the light on or off with the press of a key, but I want to be able to choose which key is used on the details panel via a public variable, is this doable? how do I do it?