Help on Making a Input Handler for a Fighting Game

I aim to create an input handler that can handle both held and pressed inputs with client-server communication. At the moment I am confused about how I can make this. I was thinking of using a remote function that checks the input, sees if it’s held, and calls the function that correlates with that key, but I’d like a bit more help with this.