I have students that had the idea to make a fighting game for their AP submission. They wanted to know if there were functions already coded to enable keyboard input so they could do something like, “if the d key is pushed, move character right” or if they would code that themselves using an onEvent and other stuff.
I don’t think there are any premade functions. You will just need to log every keyboard press. I found this video on youtube doing something similar to what you want to do. You may find it helpful