Keyboard/Controller button display switch

You know when a game tells you to press to open a door. When I touch my xbox controller it switches the display instantly to the green Controller A.
Since this routine is very common in all games I was wondering if there is a prefab for this on the marketplace or at least a tutorial. Anyone seen something like it?

Thanks,
David