2button gameplay?

hey guys, i need some help, im making a running based game, i need to control the characters movement, by pressing left, right, left right to run, the faster you push them in the order the faster you run, any ideas

if (Key.isDown(Key.RIGHT)) {

	movement += 10;

}

cheers