Kilowatts, or kW, measure how much electricity is being used at one time. Kilowatt-hours, or kWh, measure the total amount of electricity used over time.
One way to understand the difference is to think about filling a swimming pool. The total amount of water delivered is like energy use, while the rate at which the water flows is like demand.