I'm currently trying to cut down on the ugly use of if branches in my input handling and tried switching over to pattern matching as it would - at least based on how I'm currently imagining it - provide a way cleaner implementation.
However, I can't find a way to get an action name via the currently pressed button, only the possibility to check for a certain action correspondence which won't work in combination with matching.
Currently getting the input from the unhandledinput function.
Is there a way to manage this or do I have to stick to if-else branching?