How can the server get a player's key inputs?

I know you can use remote events for this, but I’m pretty sure they’re not good to use if you’re, for example, holding down a key. What can I do?

Remote events are the way to do it.

Regarding when players are holding it down - you should be able to listen to the key down and key up event (on the client), and only fire the server on those 2 events, rather than repeatedly firing the remote while the key is down.

What are you using this for? It’s not common to want to detect specific inputs from the server. If you want some sort of action to occur while an input is being made, let the client handle the input detection and fire a RemoteEvent to instigate the action on the server

For example, a car that has boosters on it and you have to press a key to activate them. You can’t do that with a car seat because it only detects movement keys.

You’ll do that on the client, then inform the server that the client wishes to boost the vehicle. Vehicles are largely owned by or simulated on the client, so you could apply the boost locally and inform the server of the boost for a temporary anti-exploit bypass