Worked on getkey()