Fixes for mouse/keyboard key up/press

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