Input.GetKeyUp(KeyCode.KeypadMinus) is true every frame

Hi together.

I’m using Input.GetKeyUp(KeyCode.KeypadMinus) to check if the key minus is just been releases.

The big problem is that the code if(Input.GetKeyUp(KeyCode.KeypadMinus)){} is alway activating.

Facts:

  • The minus key is not always pressed.
  • the keyboard is working normally. (tested out with some other keyboard))

System: Mac OS X Lion
Unity 3.4

Edit:
I tested on iPad and even there (where the KeypadMinus is totally not available for pressing) Input.GetKeyUp(KeyCode.KeypadMinus is always true.

Can we see your code?

sure

I even tried this before and after the if block (and even in)

the answer was

This is ridiculous…
Even this is activating.

PROBLEM IS FIXED…

Just deleted and saved and Rewrote the exact same code. now is everything fine… I dont understand why , but its working now.