FIXED: Inventory keybinding crash

It is impossible for keyboard key codes to be negative, most that are negative are mouse codes. Easy fix, this helps people that get a permanent crash if their inventory key binding is set to any mouse buttons.