Skip to content
Driving skills

Keyboard vs Controller: Which Is Faster in a Racing Game?

By Mor, developer and designer· 6 min read

Ask which is faster and you will get an argument. The useful version of the question is narrower: what does each input device actually let you ask the car for, and where does that show up on the stopwatch?

A browser racing game has to work for someone who opened a tab on a work laptop and for someone with a controller plugged in. Both are supported here, at the same time, with no settings screen to configure. This guide explains what changes between them and how to drive each one properly.

The whole difference is analog versus on or off

A keyboard key has two states. Pressing throttle asks for full throttle, pressing steer asks for full lock, and releasing asks for nothing. A controller trigger and stick report a value between zero and one, so you can ask for forty percent throttle or a small steering correction and get exactly that.

Everything else follows from that one fact. Trail braking, easing back onto the power mid-corner and holding a drift at a constant angle are all requests for a partial input, which a controller can make directly and a keyboard can only approximate.

It does not follow that a keyboard is slow. A keyboard gives you instant full lock with no stick travel, which is genuinely useful for catching a slide, and on tracks where the corners are similar the rhythm is easy to learn. The gap is real but it is smaller than the argument suggests.

The keyboard layout

Driving is WASD: W is throttle, S is brake and reverse, A and D steer. Space is the handbrake, and left or right Shift fires the nitro boost.

H sounds the horn and F fires a weapon when the lobby has power-ups enabled. R respawns you if you end up somewhere the track no longer is.

The arrow keys are not a second set of driving controls. They are a free look, the way a look button works in a console racer: left and right glance to the sides, down looks behind you, and up snaps the camera back to the road. Use the look behind before you defend a position.

How to be quick on a keyboard

Feather with taps, not with holds. Rapid short presses of the throttle out of a slow corner approximate a partial input well enough to stop the rear stepping out, and the same trick on the steering keeps you from using full lock when a small correction would do.

Brake earlier and straighter than you think you need to. Because you cannot trail a light brake into the corner, do your braking in a straight line, release fully, then turn. Fighting the two at once is where keyboard laps get lost.

Pick the car that forgives the input. A high handling rating means the car does more of the smoothing for you, so a planted mid-power car is usually quicker on a keyboard than a high-power car that needs a delicate right foot. The beginner car list is a good place to start.

The controller layout

Any controller the browser reports with the standard mapping works, over USB or Bluetooth, which covers current Xbox and PlayStation pads. There is nothing to enable: plug it in, press a button and it takes over.

The right trigger is throttle and the left trigger is brake, both analog, so how far you pull them is how much you get. The left stick steers, with a deadzone so a resting thumb does not wander the car.

A or Cross fires the nitro, X or Square is the handbrake, B or Circle is the horn, the right bumper fires a weapon, and Y or Triangle respawns. The right stick is the free look, replacing the keyboard arrows.

Controllers that support rumble also get haptic feedback, so contact, surface changes and the events that already make a sound are felt in your hands.

You can use both at once

The two inputs are merged every frame rather than being a mode you switch. Whichever of the keyboard and the trigger is asking for more throttle wins, and the keyboard takes priority on steering and look while it is actually being pressed, otherwise the stick does.

In practice that means you can plug a controller in mid-race and it simply starts working, hold the wheel on the stick while hitting the horn with H, and hand a friend the pad without leaving the lobby.

Phones and tablets

On a touchscreen the game shows on-screen controls, so there is nothing to plug in and nothing to install. Phones that support vibration get the same haptic feedback a controller does.

Touch is closer to keyboard than to controller in feel, so the keyboard advice applies: brake in a straight line, make small steering inputs and favour a car with a high handling rating while you learn the track.

So which should you use

If you have a controller, use it. The analog throttle is worth real lap time once you are past the beginner stage, especially anywhere you want to hold a drift or feed the power in gradually, and the rumble tells you things the screen does not.

If you do not, do not buy one to be competitive. Most of the lap time available to a new driver is in the racing line, in braking earlier, and in car tuning, none of which care what you are holding. Fix those first, and the input device becomes the last few tenths rather than the reason you are slow.

Frequently asked questions

Is a controller faster than a keyboard in a racing game?
Usually, but not by as much as people claim. The advantage is analog throttle and steering, which lets you ask for partial inputs a key cannot. On the other hand a keyboard gives instant full lock, which helps catch slides. The racing line and tuning matter far more than the device.
What are the keyboard controls?
WASD drives: W throttle, S brake and reverse, A and D steer. Space is the handbrake, Shift is nitro, H is the horn, F fires a weapon and R respawns you. The arrow keys are a free-look camera rather than driving controls.
Can I use an Xbox or PlayStation controller in a browser game?
Yes. Any pad the browser exposes with the standard gamepad mapping works over USB or Bluetooth, which includes current Xbox and PlayStation controllers. Plug it in, press a button and it is active. There is no setting to turn on.
Do I have to choose one input device?
No. Keyboard and controller are merged every frame, so both are live at the same time. You can plug a pad in mid-race, or steer on the stick while using keyboard keys for the horn and weapons.

Put it into practice

ApexMidnight is free and runs in your browser. Create a driver profile and race friends in real time, no download required.

Start racing free

More guides