Fixed some missing changes to functions for mouse key up and mouse key press that were acting as mouse key down. Also fixed the equivalent for keyboard.