libs: adding keydrown for smooth keyboard handling