You might try setting the type rate for the first problem.

I think you're barking up the wrong tree for the second one. Try using a joystick function instead. The keyboard reads the keys from the time one is pressed until it's released if I'm not mistaken, so it might be hard to sync multible scan codes, butI'm hardly an expert there .