# How could one call a function by key press in the editor window (Utility Editor Blueprint)

**URL:** <https://forums.unrealengine.com/t/how-could-one-call-a-function-by-key-press-in-the-editor-window-utility-editor-blueprint/505194>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, editor, UE4-26, Blueprint\
**Created:** [March 8, 2022, 11:58pm UTC](https://forums.unrealengine.com/t/how-could-one-call-a-function-by-key-press-in-the-editor-window-utility-editor-blueprint/505194 "2022-03-08T23:58:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Epsilon9000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Epsilon9000](https://forums.unrealengine.com/u/Epsilon9000)\
**Post date:** [March 8, 2022, 11:58pm UTC](https://forums.unrealengine.com/t/how-could-one-call-a-function-by-key-press-in-the-editor-window-utility-editor-blueprint/505194/1 "2022-03-08T23:58:42Z")

</div>

Im trying to make an Editor tool where I can select an actor in the Level (through raycasting) and apply different functions to it. Would it be possible to have a certain keybind that, when pressed, activates said function?

---

<div class="post-metadata">

**Author:** ![Samgoldwater](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Samgoldwater](https://forums.unrealengine.com/u/Samgoldwater)\
**Post date:** [November 21, 2022, 3:22pm UTC](https://forums.unrealengine.com/t/how-could-one-call-a-function-by-key-press-in-the-editor-window-utility-editor-blueprint/505194/2 "2022-11-21T15:22:24Z")

</div>

Very curious about this too, I can’t find an answer anywhere
