Looking good so far! Your problem is that jjKey[0x27] (and jjKey[0x25] ) is true not only when the key on the keyboard is first pressed, but as long as it is pressed. Unless you can manage to touch the keyboard key for only a seventieth of a second, your script will change the value of shop_item more than once.
__________________
|