Fixed Mouse and Keyboard Bug.