# Key "B" press is not recognised.

**URL:** <https://forums.unrealengine.com/t/key-b-press-is-not-recognised/1750763>\
**Category:** Architectural and Design Visualization\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [March 14, 2024, 3:22am UTC](https://forums.unrealengine.com/t/key-b-press-is-not-recognised/1750763 "2024-03-14T03:22:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NiharSail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NiharSail](https://forums.unrealengine.com/u/NiharSail)\
**Post date:** [March 14, 2024, 3:22am UTC](https://forums.unrealengine.com/t/key-b-press-is-not-recognised/1750763/1 "2024-03-14T03:22:45Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/4/b/74bb5cbc35670a18b0cef931997203b2a43b8753.png) I am trying to switch materials using key press. But keyboard input is not working. Anything missing here? I am using 5.3 version.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [March 14, 2024, 4:12am UTC](https://forums.unrealengine.com/t/key-b-press-is-not-recognised/1750763/2 "2024-03-14T04:12:05Z")

</div>

Hey there @NiharSail! Welcome to the community! First thing to verify is that the B key is being recognized. You can do this with a print string or a breakpoint.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/e/0/7e0facf2a38671bb29dc3070d9e86ce144eebb8a.png)

If it has been recognized, then the next move is to check your logic. To do this, the same idea applies. Check the outputs with prints like this and see if they are firing correctly. I set mine to loop to make sure it can fire more than twice.

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/2/da251f0114b2fbc0e349db716b6560112aafa083.png)

Then, if they all fire correctly, then the issue may reside in your material. It looks like your logic is sound from here, unless that variable isn’t set correctly. Are you receiving any errors then trying to set the material from your reference?

---

<div class="post-metadata">

**Author:** ![NiharSail](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NiharSail](https://forums.unrealengine.com/u/NiharSail)\
**Post date:** [March 14, 2024, 4:14am UTC](https://forums.unrealengine.com/t/key-b-press-is-not-recognised/1750763/3 "2024-03-14T04:14:13Z")

</div>

@SupportiveEntity Thank you for your kind reply. You are right. But on other side I found my mistake. Set material target is wrong in my blueprint. When corrected. It’s working. I appreciate your help. Thank you again.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [April 13, 2024, 4:14am UTC](https://forums.unrealengine.com/t/key-b-press-is-not-recognised/1750763/4 "2024-04-13T04:14:32Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
