Read Keyboard/Gamepad input keys?

Is there a way to read specific keys on keyboard / gamepad and execute actions based on this input?

I know we can register stuff to events, like crouching and jumping, but I want something like

“If Z pressed then do (Function)”
“If P pressed then do (Function)”

Is that currently possible in UEFN?

I would think something like this could work.

(post deleted by author)

This video shows how to create an in-game UI keyboard, so you can type stuff;
What I’m looking for is a way to read keyboard input (hardware) for custom actions, without having the buttons on screen.

But thanks anyways, it was a pretty interesting video and I did learn a few things from it!

I see. Is this what you are looking for then?