UI how to change image in game by pressing 1

Drag your image reference (in your widget blueprint) to the graph. Then, from that, drag its pin and search for Set Brush From Texture