# My buttons lose keyboard focus if a mouse is clicked

**URL:** <https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836>\
**Category:** UI\
**Tags:** unreal-engine, Widget, question\
**Created:** [May 1, 2023, 3:26pm UTC](https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836 "2023-05-01T15:26:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![StevenHammon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/stevenhammon/32/88719_2.png) [@StevenHammon](https://forums.unrealengine.com/u/StevenHammon)\
**Post date:** [May 2, 2023, 9:37am UTC](https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836/3 "2023-05-02T09:37:46Z")

</div>

Player Controller has a built in variable “Show Mouse Cursor” You can 100% control if you see the cursor or not.

> [@Show mouse cursor in BP?](https://forums.unrealengine.com/t/show-mouse-cursor-in-bp/379299):
>
> Hey everyone, I have this problem with the Set Show Mouse Cursor in Blueprints. I have a main menu level and I want to have the cursor for easy interaction but it doesn’t show up. I have a Event BeginPlay node in the level blueprint that connects with the Set Show Mouse Cursor (enabled) and Get Player Controller as target. What I am doing wrong?

---

_[View the full topic](https://forums.unrealengine.com/t/my-buttons-lose-keyboard-focus-if-a-mouse-is-clicked/1150836)._
