on key listener bug fix

fixes on key listener bug #121