# Button style not updating until I hover over it

**URL:** <https://forums.unrealengine.com/t/button-style-not-updating-until-i-hover-over-it/1250601>\
**Category:** UI\
**Tags:** UE-5, style, change, unreal-engine, update, color, UE5, UI, Widget, question, Blueprint\
**Created:** [August 4, 2023, 12:53pm UTC](https://forums.unrealengine.com/t/button-style-not-updating-until-i-hover-over-it/1250601 "2023-08-04T12:53:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_untextured](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_untextured](https://forums.unrealengine.com/u/The_untextured)\
**Post date:** [August 4, 2023, 12:53pm UTC](https://forums.unrealengine.com/t/button-style-not-updating-until-i-hover-over-it/1250601/1 "2023-08-04T12:53:38Z")

</div>

I have this piece of blueprint:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/5/2/0528865a543cc92d5c6d0913d00972b2a8e9980a.png)

What it is supposed to do is when a keybind is changed, it should update the foreground color to indicate if there is a duplicate or not. I am using an InputKeySelector for this.

The problem is that the style does not update until I hover over the key selector.

Is there a way of solving this?
