Use new repeat field on KeyDown and KeyUp events

Not 100% sure on the handling of repeat on KeyUp, but I think this should be OK.