Repeat key and mouse input. Closes #137.