State change using keypad

I want to control servo using keypad if i press # i want the servo to go 180degree and if i press # i want the servo to fo to 0 degree .

Im confused if key.getkey(); return the char once if the key is in hold or it return the char continously if the key is holded

What library is getkey() from?

marwan12:
I want to control servo using keypad if i press # i want the servo to go 180degree and if i press # i want the servo to fo to 0 degree .

Im confused if key.getkey(); return the char once if the key is in hold or it return the char continously if the key is holded

It returns it only once assuming you are using the Keypad library.

ToddL1962:
It returns it only once assuming you are using the Keypad library.

Thanks

ToddL1962:
It returns it only once assuming you are using the Keypad library.

There is only one Keypad library? I ask because it's not officially listed in Reference.

aarg:
There is only one Keypad library? I ask because it's not officially listed in Reference.

author Alexander Brevig
im using keypad library by Alexander Brevig