I created my custom action in Project -> Project Settings -> Input Map -> "customspace". I called it "uimovement", it contains the movement's keys(up, down, left, right).
This is the code: I want to store the exact value of the pressed key in the variable "direction" or maybe print the value
direction = the exact pressed key(Is it UP, DOWN, LEFT or RIGHT?)
print(VALUE OF THE PRESSED KEY)